[FFmpeg-devel] Why does ffmpeg h264 decoder stop decoding when certain type of packets are coming in the input stream?

Naveed Basha naveedbasha at gmail.com
Tue Oct 23 11:41:19 EEST 2018


Below code change fixes Bug #7340
Not sure if that would impact something else. Request your kind opinion on
this.

diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 7b4c5c7..4656d22 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -473,7 +473,7 @@ static void idr(H264Context *h)
     ff_h264_remove_all_refs(h);
     h->poc.prev_frame_num        =
     h->poc.prev_frame_num_offset = 0;
-    h->poc.prev_poc_msb          = 1<<16;
+    //h->poc.prev_poc_msb          = 1<<16;
     h->poc.prev_poc_lsb          = 0;
     for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++)
         h->last_pocs[i] = INT_MIN;


On Tue, Jul 31, 2018 at 7:18 PM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2018-07-28 14:57 GMT+02:00, Naveed Basha <naveedbasha at gmail.com>:
> > Yes, please find the test stream here. I was using ffmpeg v3.4.2.
> >
> > https://drive.google.com/open?id=1rHCfG4csA3rB4LSgErEBn1F3WfI5nUVr
>
> This is now ticket #7340, thank you for the sample.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


-- 
Cheers,
Naveed


More information about the ffmpeg-devel mailing list