diff options
author | wm4 <wm4@nowhere> | 2015-04-20 20:52:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-20 20:52:16 +0200 |
commit | c6d046414b1d31046c39da6399130b39fe54813d (patch) | |
tree | 30c1d2b0ac5e13fa9954dae8db0e8d85fb7cc6b4 /video/decode/dec_video.c | |
parent | c5654e400587a8358e486da7da468a775dcd8cc2 (diff) | |
download | mpv-c6d046414b1d31046c39da6399130b39fe54813d.tar.bz2 mpv-c6d046414b1d31046c39da6399130b39fe54813d.tar.xz |
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.
Diffstat (limited to 'video/decode/dec_video.c')
-rw-r--r-- | video/decode/dec_video.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index afbda5142f..1011124d40 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -385,9 +385,7 @@ int video_reconfig_filters(struct dec_video *d_video, struct mp_image_params p = *params; struct sh_video *sh = d_video->header->video; - MP_VERBOSE(d_video, "VIDEO: %dx%d %5.3f fps %5.1f kbps (%4.1f kB/s)\n", - p.w, p.h, sh->fps, sh->bitrate / 1000.0, - sh->bitrate / 8000.0); + MP_VERBOSE(d_video, "VIDEO: %dx%d %5.3f fps\n", p.w, p.h, sh->fps); MP_VERBOSE(d_video, "VDec: vo config request - %d x %d (%s)\n", p.w, p.h, vo_format_name(p.imgfmt)); |