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

Wei.Yang summerpulse at qq.com
Tue Jun 6 18:16:34 EEST 2017

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 what i want? what's the right way to check integrity of a decoded picture?

More information about the ffmpeg-user mailing list