mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
avidemux: recognize all xsub frames as keyframes
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=684977
This commit is contained in:
parent
511dfa5ee5
commit
cb0e4b2059
2 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,7 @@ typedef struct _gst_riff_avih {
|
|||
/* vprp (video properties) ODML header */
|
||||
/* see ODML spec for some/more explanation */
|
||||
#define GST_RIFF_TAG_vprp GST_MAKE_FOURCC ('v','p','r','p')
|
||||
#define GST_RIFF_DXSB GST_MAKE_FOURCC ('D','X','S','B')
|
||||
#define GST_RIFF_VPRP_VIDEO_FIELDS (2)
|
||||
|
||||
typedef struct _gst_riff_vprp_video_field_desc {
|
||||
|
|
|
@ -2656,6 +2656,9 @@ gst_avi_demux_parse_index (GstAviDemux * avi, GstBuffer * buf)
|
|||
if (stream->strh->type == GST_RIFF_FCC_auds) {
|
||||
/* all audio frames are keyframes */
|
||||
ENTRY_SET_KEYFRAME (&entry);
|
||||
} else if (stream->strf.vids->compression == GST_RIFF_DXSB) {
|
||||
/* all xsub frames are keyframes */
|
||||
ENTRY_SET_KEYFRAME (&entry);
|
||||
} else {
|
||||
guint32 flags;
|
||||
/* else read flags */
|
||||
|
|
Loading…
Reference in a new issue