mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/dcaenc: return correct number of bytes in output packet
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ed0c550564
commit
06f65fd026
@ -968,7 +968,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
|
|
||||||
avpkt->pts = frame->pts;
|
avpkt->pts = frame->pts;
|
||||||
avpkt->duration = ff_samples_to_time_base(avctx, frame->nb_samples);
|
avpkt->duration = ff_samples_to_time_base(avctx, frame->nb_samples);
|
||||||
avpkt->size = c->frame_size + 1;
|
avpkt->size = put_bits_count(&c->pb) >> 3;
|
||||||
*got_packet_ptr = 1;
|
*got_packet_ptr = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,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 = c54ca9a13711755ef90fa143a9b38386
|
fate-acodec-dca: REF = 7ffdefdf47069289990755c79387cc90
|
||||||
|
|
||||||
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…
Reference in New Issue
Block a user