avidemux: recognize all xsub frames as keyframes

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=684977
This commit is contained in:
Mark Nauwelaerts 2012-09-28 16:51:01 +02:00
parent 511dfa5ee5
commit cb0e4b2059
2 changed files with 4 additions and 0 deletions

View file

@ -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 {

View file

@ -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 */