aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rangecoder.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-04-30 23:08:46 -0300
committerJames Almer <jamrial@gmail.com>2024-05-05 21:37:07 -0300
commit0ec8f3c55a7786d88935205db8244a4c4419fe7f (patch)
tree4d3da8bb2cdbf3b1dc5fe1ea11b60a786ff57d33 /libavcodec/rangecoder.c
parent82397084a9328d3f67caa9ce519304b714a132ea (diff)
downloadffmpeg-0ec8f3c55a7786d88935205db8244a4c4419fe7f.tar.gz
avformat/mov: don't use stream duration to calculate bitrate with fragmented input
sc->data_size may contain the size of a single fragment after probing, and using it alongside the duration of the entire stream to calculate bitrate will result in a bogus small value. Before: Duration: 00:00:05.00, start: 0.000000, bitrate: 586 kb/s Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 640x360 [SAR 1:1 DAR 16:9], 112 kb/s, 60 fps, 60 tbr, 15360 tbn (default) After: Duration: 00:00:05.00, start: 0.000000, bitrate: 586 kb/s Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 640x360 [SAR 1:1 DAR 16:9], 561 kb/s, 60 fps, 60 tbr, 15360 tbn (default) Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/rangecoder.c')
0 files changed, 0 insertions, 0 deletions