summaryrefslogtreecommitdiffstats
path: root/gst/qtmux/atoms.c
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-06-01 22:42:08 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-06-01 22:42:44 +0200
commit7f82fe3b46e74a9647a693fdf72f954f648ce87c (patch)
treeb57f8ddb7f1532b25001c92d9a8c29c7e865a3db /gst/qtmux/atoms.c
parent7709bf5f2a5f8cc363b42be5e652aef3ad850d9d (diff)
downloadgst-plugins-bad-7f82fe3b46e74a9647a693fdf72f954f648ce87c.tar.gz
gst-plugins-bad-7f82fe3b46e74a9647a693fdf72f954f648ce87c.tar.bz2
gst-plugins-bad-7f82fe3b46e74a9647a693fdf72f954f648ce87c.zip
gppmux: enhance ftyp brand heuristic. Fixes #584360.
Diffstat (limited to 'gst/qtmux/atoms.c')
-rw-r--r--gst/qtmux/atoms.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/qtmux/atoms.c b/gst/qtmux/atoms.c
index a5d8fe38..47db40ce 100644
--- a/gst/qtmux/atoms.c
+++ b/gst/qtmux/atoms.c
@@ -2783,6 +2783,9 @@ atom_trak_set_audio_type (AtomTRAK * trak, AtomsContext * context,
atom_trak_set_audio_commons (trak, context, scale);
ste = atom_trak_add_audio_entry (trak, context, entry->fourcc);
+ trak->is_video = FALSE;
+ trak->is_h264 = FALSE;
+
ste->version = entry->version;
ste->compression_id = entry->compression_id;
ste->sample_size = entry->sample_size;
@@ -2811,6 +2814,9 @@ atom_trak_set_video_type (AtomTRAK * trak, AtomsContext * context,
entry->height);
ste = atom_trak_add_video_entry (trak, context, entry->fourcc);
+ trak->is_video = TRUE;
+ trak->is_h264 = (entry->fourcc == FOURCC_avc1);
+
ste->width = entry->width;
ste->height = entry->height;
ste->depth = entry->depth;