<div dir="ltr">Hi,<br><div><br></div><div>I am using FFMPEG APIs to decode video. </div><div>While trying to decode an error stream, FFMPEG is able to identify the errors as shown in the logs below being printed from FFMPEG libraries. </div><div>Decoded output also has visual issues.</div><div>***</div><div>Code Output:<br>    [h264 @ 0x55aa17781f40] mb_type 38 in I slice too large at 3 0<br>    [h264 @ 0x55aa17781f40] error while decoding MB 3 0<br>    [h264 @ 0x55aa17781f40] concealing 396 DC, 396 AC, 396 MV errors in I frame<br><br>    [Frame 1(352x288),codedPicNum=0, I,yuv420p] <br></div><div>***</div><div>However, I am wondering how am I supposed to signal these errors to my application?</div><div>The Return value for 

avcodec_receive_frame() is not indicating any error here as we can see from code snip.</div><div> </div><div>****<br></div><div>Code:</div><div>    while (ret >= 0) {<br></div><div>        ret = avcodec_receive_frame(dec_ctx, frame);<br>        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)<br>            return;<br>        else if (ret < 0) {<br>            fprintf(stderr, "Error during decoding\n");<br>            exit(1);<br>        }<br>        printf("[Frame %d(%dx%d),codedPicNum=%d, %c,%s]\n", dec_ctx->frame_number, frame->width, frame->height, frame->coded_picture_number, av_get_picture_type_char(frame->pict_type), av_get_pix_fmt_name(frame->format));<br>        fflush(stdout);<br>    }<br></div><div>***</div><div><br></div><div>Please help.</div><div><br></div><div>Thanks,</div><div>Rohit Khali</div></div>