mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
qtdemux: simplify retrieving stsd child entry atom
This commit is contained in:
parent
c6b9f5b25a
commit
662ec520ae
1 changed files with 2 additions and 7 deletions
|
@ -6328,13 +6328,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
|
|
||||||
esds = NULL;
|
esds = NULL;
|
||||||
pasp = NULL;
|
pasp = NULL;
|
||||||
mp4v = qtdemux_tree_get_child_by_type (stsd, FOURCC_mp4v);
|
/* pick 'the' stsd child */
|
||||||
if (!mp4v)
|
mp4v = qtdemux_tree_get_child_by_type (stsd, fourcc);
|
||||||
mp4v = qtdemux_tree_get_child_by_type (stsd, FOURCC_MP4V);
|
|
||||||
/* H264 is MPEG-4 after all,
|
|
||||||
* and qt seems to put MPEG-4 stuff in there as well */
|
|
||||||
if (!mp4v)
|
|
||||||
mp4v = qtdemux_tree_get_child_by_type (stsd, FOURCC_avc1);
|
|
||||||
if (mp4v) {
|
if (mp4v) {
|
||||||
esds = qtdemux_tree_get_child_by_type (mp4v, FOURCC_esds);
|
esds = qtdemux_tree_get_child_by_type (mp4v, FOURCC_esds);
|
||||||
pasp = qtdemux_tree_get_child_by_type (mp4v, FOURCC_pasp);
|
pasp = qtdemux_tree_get_child_by_type (mp4v, FOURCC_pasp);
|
||||||
|
|
Loading…
Reference in a new issue