metasound & twinvqdec: return the number of read bytes from read_bitstream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f5dae4894d
commit
cbb7f56dfe
@ -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 {
|
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)
|
static av_cold int twinvq_decode_init(AVCodecContext *avctx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user