mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
qtdemux: Minor cleanup
Just move variables to the blocks where they are used. That function is massive, could do with some splitting up for readability :(
This commit is contained in:
parent
357d77cf55
commit
4fd8635983
1 changed files with 6 additions and 6 deletions
|
@ -9613,18 +9613,13 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
GNode *stsd;
|
GNode *stsd;
|
||||||
GNode *mp4a;
|
GNode *mp4a;
|
||||||
GNode *mp4v;
|
GNode *mp4v;
|
||||||
GNode *wave;
|
|
||||||
GNode *esds;
|
GNode *esds;
|
||||||
GNode *pasp;
|
|
||||||
GNode *colr;
|
|
||||||
GNode *tref;
|
GNode *tref;
|
||||||
GNode *udta;
|
GNode *udta;
|
||||||
GNode *svmi;
|
GNode *svmi;
|
||||||
GNode *fiel;
|
|
||||||
|
|
||||||
QtDemuxStream *stream = NULL;
|
QtDemuxStream *stream = NULL;
|
||||||
gboolean new_stream = FALSE;
|
gboolean new_stream = FALSE;
|
||||||
gchar *codec = NULL;
|
|
||||||
const guint8 *stsd_data;
|
const guint8 *stsd_data;
|
||||||
const guint8 *stsd_entry_data;
|
const guint8 *stsd_entry_data;
|
||||||
guint remaining_stsd_len;
|
guint remaining_stsd_len;
|
||||||
|
@ -9635,7 +9630,6 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
guint32 tkhd_flags = 0;
|
guint32 tkhd_flags = 0;
|
||||||
guint8 tkhd_version = 0;
|
guint8 tkhd_version = 0;
|
||||||
guint32 w = 0, h = 0;
|
guint32 w = 0, h = 0;
|
||||||
guint32 fourcc;
|
|
||||||
guint value_size, stsd_len, len;
|
guint value_size, stsd_len, len;
|
||||||
guint32 track_id;
|
guint32 track_id;
|
||||||
guint32 dummy;
|
guint32 dummy;
|
||||||
|
@ -9875,6 +9869,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
stsd_entry_data = stsd_data + 16;
|
stsd_entry_data = stsd_data + 16;
|
||||||
remaining_stsd_len = stsd_len - 16;
|
remaining_stsd_len = stsd_len - 16;
|
||||||
for (stsd_index = 0; stsd_index < stsd_entry_count; stsd_index++) {
|
for (stsd_index = 0; stsd_index < stsd_entry_count; stsd_index++) {
|
||||||
|
guint32 fourcc;
|
||||||
|
gchar *codec = NULL;
|
||||||
QtDemuxStreamStsdEntry *entry = &stream->stsd_entries[stsd_index];
|
QtDemuxStreamStsdEntry *entry = &stream->stsd_entries[stsd_index];
|
||||||
|
|
||||||
/* and that entry should fit within stsd */
|
/* and that entry should fit within stsd */
|
||||||
|
@ -9900,6 +9896,9 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream->subtype == FOURCC_vide) {
|
if (stream->subtype == FOURCC_vide) {
|
||||||
|
GNode *colr;
|
||||||
|
GNode *fiel;
|
||||||
|
GNode *pasp;
|
||||||
gboolean gray;
|
gboolean gray;
|
||||||
gint depth, palette_size, palette_count;
|
gint depth, palette_size, palette_count;
|
||||||
guint32 *palette_data = NULL;
|
guint32 *palette_data = NULL;
|
||||||
|
@ -10782,6 +10781,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
GST_FOURCC_ARGS (fourcc), entry->caps);
|
GST_FOURCC_ARGS (fourcc), entry->caps);
|
||||||
|
|
||||||
} else if (stream->subtype == FOURCC_soun) {
|
} else if (stream->subtype == FOURCC_soun) {
|
||||||
|
GNode *wave;
|
||||||
int version, samplesize;
|
int version, samplesize;
|
||||||
guint16 compression_id;
|
guint16 compression_id;
|
||||||
gboolean amrwb = FALSE;
|
gboolean amrwb = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue