mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/dcaenc: clear bitstream end
This avoids leaving uninitialized bits in the output Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d903b62750
commit
e322b7061f
@ -938,6 +938,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
for (i = 0; i < SUBFRAMES; i++)
|
for (i = 0; i < SUBFRAMES; i++)
|
||||||
put_subframe(c, i);
|
put_subframe(c, i);
|
||||||
|
|
||||||
|
|
||||||
|
for (i = put_bits_count(&c->pb); i < 8*c->frame_size; i++)
|
||||||
|
put_bits(&c->pb, 1, 0);
|
||||||
|
|
||||||
flush_put_bits(&c->pb);
|
flush_put_bits(&c->pb);
|
||||||
|
|
||||||
avpkt->pts = frame->pts;
|
avpkt->pts = frame->pts;
|
||||||
|
@ -103,7 +103,7 @@ fate-acodec-dca: tests/data/asynth-44100-2.wav
|
|||||||
fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
|
fate-acodec-dca: SRC = tests/data/asynth-44100-2.wav
|
||||||
fate-acodec-dca: CMD = md5 -i $(TARGET_PATH)/$(SRC) -c:a dca -strict -2 -f dts -flags +bitexact
|
fate-acodec-dca: CMD = md5 -i $(TARGET_PATH)/$(SRC) -c:a dca -strict -2 -f dts -flags +bitexact
|
||||||
fate-acodec-dca: CMP = oneline
|
fate-acodec-dca: CMP = oneline
|
||||||
fate-acodec-dca: REF = fe28cef432ed88de4ee01b87537fd2bd
|
fate-acodec-dca: REF = c54ca9a13711755ef90fa143a9b38386
|
||||||
|
|
||||||
FATE_ACODEC-$(call ENCDEC, DCA, WAV) += fate-acodec-dca2
|
FATE_ACODEC-$(call ENCDEC, DCA, WAV) += fate-acodec-dca2
|
||||||
fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact
|
fate-acodec-dca2: CMD = enc_dec_pcm dts wav s16le $(SRC) -c:a dca -strict -2 -flags +bitexact
|
||||||
|
Loading…
x
Reference in New Issue
Block a user