On Sun, Jan 8, 2017 at 2:53 PM, Hendrik Leppkes <h.lepp...@gmail.com> wrote: > On Tue, Jan 3, 2017 at 8:26 AM, <pkoshe...@gmail.com> wrote:
>> + ret = convert_to_cuda_video_chroma_format(avctx->pix_fmt, >> &probed_chroma_format); >> + if (ret < 0) { >> + // pixel format is not supported: >> + return ret; >> + } > > Generally, there is no guarantee that any of these properties are > already set when init is called. When you use avformat->avcodec, it'll > generally try to probe them from the stream, however if someone just > uses avcodec, the h264 software decoder for example works independent > of dimensions or pixfmt set - because it can determine this from the > bitstream. > > So what I'm trying to say, failing when you detect an explicitly > incompatible value might be OK, but failing when its unset seems like > it might be annoying. > You are right, that was my oversight. I've posted a new version of the patch -- if avctx->pix_fmt is unset assume YUV420P. Thank you, Pavel. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel