diff options
Diffstat (limited to 'libavcodec/lzwenc.c')
-rw-r--r-- | libavcodec/lzwenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lzwenc.c b/libavcodec/lzwenc.c index e693d74272..6c45f7cc37 100644 --- a/libavcodec/lzwenc.c +++ b/libavcodec/lzwenc.c @@ -189,7 +189,7 @@ static void clearTable(LZWEncodeState * s) * @return Number of bytes written */ static int writtenBytes(LZWEncodeState *s){ - int ret = put_bits_count(&s->pb) >> 3; + int ret = put_bytes_count(&s->pb, 0); ret -= s->output_bytes; s->output_bytes += ret; return ret; |