summaryrefslogtreecommitdiff
path: root/libavcodec/sonic.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-19 02:40:18 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-12-31 17:44:18 +0100
commit1be9a28f8e8cd2553f978670901174a8808b9a1a (patch)
treecacd06dd17448c1e95df7137c4b9f2781b7e04a0 /libavcodec/sonic.c
parent41c1643d75860208d6debb8cb85d3edbd9457bd3 (diff)
avcodec/rangecoder: factorize termination version code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/sonic.c')
-rw-r--r--libavcodec/sonic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c
index 2e3ca79fdd..34d2952e69 100644
--- a/libavcodec/sonic.c
+++ b/libavcodec/sonic.c
@@ -842,7 +842,7 @@ static int sonic_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
// av_log(avctx, AV_LOG_DEBUG, "used bytes: %d\n", (put_bits_count(&pb)+7)/8);
- avpkt->size = ff_rac_terminate(&c);
+ avpkt->size = ff_rac_terminate(&c, 0);
*got_packet_ptr = 1;
return 0;