mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: initialize bitrate variable and reset for each loop
Don't check eventually unset variable and don't accidentially use values from last cycle.
This commit is contained in:
parent
d08e0ccc48
commit
a1b1d19105
1 changed files with 1 additions and 0 deletions
|
@ -7472,6 +7472,7 @@ gst_qtdemux_guess_bitrate (GstQTDemux * qtdemux)
|
||||||
case FOURCC_soun:
|
case FOURCC_soun:
|
||||||
case FOURCC_vide:
|
case FOURCC_vide:
|
||||||
/* retrieve bitrate, prefer avg then max */
|
/* retrieve bitrate, prefer avg then max */
|
||||||
|
bitrate = 0;
|
||||||
if (qtdemux->streams[i]->pending_tags) {
|
if (qtdemux->streams[i]->pending_tags) {
|
||||||
gst_tag_list_get_uint (qtdemux->streams[i]->pending_tags,
|
gst_tag_list_get_uint (qtdemux->streams[i]->pending_tags,
|
||||||
GST_TAG_MAXIMUM_BITRATE, &bitrate);
|
GST_TAG_MAXIMUM_BITRATE, &bitrate);
|
||||||
|
|
Loading…
Reference in a new issue