Commit 93bf1aac authored by Jakub Stachowski's avatar Jakub Stachowski Committed by Michael Niedermayer

wmalossless: Ensure that last frame is not written again if nothing was decoded in current packet.

Reviewed-by: 's avatarMashiat Sarker Shakkhar <mashiat.sarker@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b27383e4
...@@ -1171,6 +1171,8 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr, ...@@ -1171,6 +1171,8 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
int buf_size = avpkt->size; int buf_size = avpkt->size;
int num_bits_prev_frame, packet_sequence_number, spliced_packet; int num_bits_prev_frame, packet_sequence_number, spliced_packet;
s->frame.nb_samples = 0;
if (s->packet_done || s->packet_loss) { if (s->packet_done || s->packet_loss) {
s->packet_done = 0; s->packet_done = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment