GNOME Bugzilla – Bug 768439
baseparse: Don't add calculated bitrates until threshold
Last modified: 2016-07-05 16:44:12 UTC
Created attachment 330897 [details] [review] [PATCH] baseparse: Don't add calculated bitrates until threshold Waiting before posting calculated bitrates seems to be the intent of the code, so avoid adding them to the tag list pushed with the first frame. When the threshold is reached, gst_base_parse_update_bitrates sets tags_changed, so this posts the calculated ones right that moment. This prevents an insane average calculated from just the first (key) frame from getting posted.
Comment on attachment 330897 [details] [review] [PATCH] baseparse: Don't add calculated bitrates until threshold Makes sense
commit d71e03b3beea024babb689b3e3a79a177dd9b55e Author: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> Date: Tue Jul 5 12:17:18 2016 +0200 baseparse: Don't add calculated bitrates until threshold Waiting before posting calculated bitrates seems to be the intent of the code, so avoid adding them to the tag list pushed with the first frame. When the threshold is reached, gst_base_parse_update_bitrates sets tags_changed, so this posts the calculated ones right that moment. This prevents an insane average calculated from just the first (key) frame from getting posted. https://bugzilla.gnome.org/show_bug.cgi?id=768439