[FFmpeg-trac] #3705(undetermined:open): Seeking fails for H264 file
FFmpeg
trac at avcodec.org
Sat Jan 5 21:04:40 EET 2019
#3705: Seeking fails for H264 file
-------------------------------------+-------------------------------------
Reporter: | Owner:
Aleksoid1978 | Status: open
Type: defect | Component:
Priority: normal | undetermined
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by v0lt):
After searching, I get this log
{{{
Reinit context to 1920x1088, pix_fmt: dxva2_vld
[h264 @ 000000000f00e0c0] co located POCs unavailable
[h264 @ 000000000f00e0c0] co located POCs unavailable
[h264 @ 000000000f00e0c0] co located POCs unavailable
[h264 @ 000000000f00e0c0] co located POCs unavailable
[h264 @ 000000000f00e0c0] mmco: unref short failure
[h264 @ 000000000f00e0c0] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding one
[h264 @ 000000000f00e0c0] reference picture missing during reorder
[h264 @ 000000000f00e0c0] Missing reference picture, default is 65534
[h264 @ 000000000f00e0c0] reference picture missing during reorder
[h264 @ 000000000f00e0c0] Missing reference picture, default is 65534
[h264 @ 000000000f00e0c0] reference picture missing during reorder
[h264 @ 000000000f00e0c0] Missing reference picture, default is 65534
[h264 @ 000000000f00e0c0] reference picture missing during reorder
[h264 @ 000000000f00e0c0] Missing reference picture, default is 65534
[h264 @ 000000000f00e0c0] mmco: unref short failure
[h264 @ 000000000f00e0c0] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding one
[h264 @ 000000000f00e0c0] mmco: unref short failure
}}}
On line ''h->cur_pic_ptr->recovered |= 1;'' I get the following data.
{{{
err == 0
h->short_ref_count == 3
pps_ref_count[0] == 4
pps_ref_count[1] == 1
h->avctx->has_b_frames == 2
h->picture_structure == PICT_FRAME
h->has_recovery_point == 0
}}}
I see two ways to change the check.
{{{
h->short_ref_count<=3
}}}
or
{{{
pps_ref_count[0] <= 4 && pps_ref_count[1] <= 1 && h->avctx->has_b_frames
}}}
But I do not know which one is more correct.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3705#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list