mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
wmalossless: Ensure that last frame is not written again if nothing was decoded in current packet.
Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b27383e453
commit
93bf1aac6a
@ -1171,6 +1171,8 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
|
||||
int buf_size = avpkt->size;
|
||||
int num_bits_prev_frame, packet_sequence_number, spliced_packet;
|
||||
|
||||
s->frame.nb_samples = 0;
|
||||
|
||||
if (s->packet_done || s->packet_loss) {
|
||||
s->packet_done = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user