h261dec doesn't mark keyframes
|Reported by:||Lastique||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
h261dec does not set AVFrame::key_frame field on keyframes. As a side effect, frame skipping except keyframes doesn't work (all frames are skipped).
In H.261, keyframes are normally indicated by the Freeze Picture Release bit in the Picture Header of a frame, but h261dec ignores that bit. h261enc behavior is to set that bit on keyframes.
The problem was discovered in a client application that uses ffmpeg through its C API. I'm not sure if it can be reproduced through command line.
Attached is a patch that fixes the problem. The patch has been posted on ffmpeg-devel:
Change History (6)
follow-up: 4 comment:1 by , 3 years ago
|Blocked By:||→ h261|
|Priority:||normal → wish|
|Type:||defect → enhancement|
|Version:||4.2 → git-master|