[FFmpeg-devel] [PATCH 1/5] mlpenc: fix lossless check error in number_sbits
Lynne
dev at lynne.ee
Wed Jul 10 01:14:56 EEST 2019
Jul 9, 2019, 9:18 PM by me at jailuthra.in:
> we need two bits instead of one bit to represent -1 in bitstream
>
> Signed-off-by: Jai Luthra <me at jailuthra.in>
> ---
> libavcodec/mlpenc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
> index deb171645c..f4948451f1 100644
> --- a/libavcodec/mlpenc.c
> +++ b/libavcodec/mlpenc.c
> @@ -466,7 +466,7 @@ static void default_decoding_params(MLPEncodeContext *ctx,
> */
> static int inline number_sbits(int number)
> {
> - if (number < 0)
> + if (number < -1)
> number++;
>
This is different from the first patch's version. Sure its correct now?
More information about the ffmpeg-devel
mailing list