Commit 6df2a017 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts Committed by Tim-Philipp Müller
Browse files

baseparse: need proper frame duration to obtain sensible frame bitrate

parent 1749b527
......@@ -1206,7 +1206,10 @@ gst_base_parse_update_bitrates (GstBaseParse * parse, GstBaseParseFrame * frame)
gst_base_parse_post_bitrates (parse, FALSE, TRUE, FALSE);
frame_bitrate = (8 * data_len * GST_SECOND) / frame_dur;
if (frame_dur)
frame_bitrate = (8 * data_len * GST_SECOND) / frame_dur;
GST_LOG_OBJECT (parse, "frame bitrate %u, avg bitrate %u", frame_bitrate,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment