aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec_ilbc.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-10-22 09:47:52 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-10-27 18:18:24 +0800
commitf3568a33c99aed7326e603b7bff3199bc4686d53 (patch)
tree15140a3dfa72299dcd413eac6f13e4396a857e4a /libavformat/rtpdec_ilbc.c
parentdf6ec7f83b4fb65d760259e01182dc28b6cf3f2f (diff)
downloadffmpeg-f3568a33c99aed7326e603b7bff3199bc4686d53.tar.gz
avformat/mpegtsenc: use total_size instead of avio_tell()
avio_tell() fails to get the amount of data written so far when the underlying IO context is flushed to segments. Please test with below command: $ ./ffmpeg -f lavfi -i testsrc=duration=100:size=vga -c:v libx264 -x264opts \ nal-hrd=cbr:force-cfr=1 -b:v 500k -minrate 500k -maxrate 500k -bufsize 500k \ -f hls -hls_time 10 -hls_ts_options "muxrate=2000000" test%d.ts $ du -h test*.ts Before: 2.4M test00.ts 4.8M test11.ts 7.2M test22.ts 9.6M test33.ts 12M test44.ts ... After apply the patch: 2.4M test00.ts 2.4M test11.ts 2.4M test22.ts 2.4M test33.ts 2.4M test44.ts ... Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtpdec_ilbc.c')
0 files changed, 0 insertions, 0 deletions