Commit cbb7f56d authored by Michael Niedermayer's avatar Michael Niedermayer

metasound & twinvqdec: return the number of read bytes from read_bitstream

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f5dae489
......@@ -226,7 +226,7 @@ static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
}
}
return 0;
return (get_bits_count(&gb) + 7) / 8;
}
typedef struct MetasoundProps {
......
......@@ -312,7 +312,7 @@ static int twinvq_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
}
}
return 0;
return (get_bits_count(&gb) + 7) / 8;
}
static av_cold int twinvq_decode_init(AVCodecContext *avctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment