[FFmpeg-trac] #11190(avcodec:new): H.264 video stops playing without errors

FFmpeg trac at avcodec.org
Fri Sep 13 01:35:49 EEST 2024


#11190: H.264 video stops playing without errors
-------------------------------------+-----------------------------------
             Reporter:  kevmo314     |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------
Comment (by kevmo314):

 A little more context, it looks like this file's SPS indicates that the
 max POC is 8192 but the POC goes from 122 to 2 reading the slice headers.
 It appears that FFmpeg isn't doing anything wrong then, but is there a way
 to ignore the POC?

 I know this is used for B-frames and such, so not sure how feasible that
 would be. Patching this line:

 out_of_order = out->poc < h->next_outputed_poc;

 and replacing it with:

 out_of_order = 0;

 fixes playback. In other words, ignoring the out-of-order-ness of the
 file.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11190#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list