From c6d046414b1d31046c39da6399130b39fe54813d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Apr 2015 20:52:16 +0200 Subject: player: change video-bitrate and audio-bitrate properties Remove the old implementation for these properties. It was never very good, often returned very innaccurate values or just 0, and was static even if the source was variable bitrate. Replace it with the implementation of "packet-video-bitrate". Mark the "packet-..." properties as deprecated. (The effective difference is different formatting, and returning the raw value in bits instead of kilobits.) Also extend the documentation a little. It appears at least some decoders (sipr?) need the AVCodecContext.bit_rate field set, so this one is still passed through. --- audio/decode/ad_lavc.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'audio') diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c index f02f9213ab..5a2392e05a 100644 --- a/audio/decode/ad_lavc.c +++ b/audio/decode/ad_lavc.c @@ -144,9 +144,6 @@ static int init(struct dec_audio *da, const char *decoder) return 0; } - if (lavc_context->bit_rate != 0) - da->bitrate = lavc_context->bit_rate; - return 1; } -- cgit v1.2.3