Re: [FFmpeg-user] Check if a decoded frame is broken

2017-06-06 Thread Marton Balint
On Tue, 6 Jun 2017, Wei.Yang wrote: i'm decoding video stream using ffmpeg, what i want to do is to check if the picture is broken when a frame is decoded by avcodec_decode_video2(). i call av_frame_get_decode_error_flags() on decoded frame to get the errflags, but it returned 0 all the time.

[FFmpeg-user] Check if a decoded frame is broken

2017-06-06 Thread Wei.Yang
i'm decoding video stream using ffmpeg, what i want to do is to check if the picture is broken when a frame is decoded by avcodec_decode_video2(). i call av_frame_get_decode_error_flags() on decoded frame to get the errflags, but it returned 0 all the time. am i calling the right function to get