Commit 77649930 authored by faust3's avatar faust3

fix handling of packet loss when the output buffer is full

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19766 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f0ea93bf
......@@ -1461,7 +1461,8 @@ static int decode_packet(AVCodecContext *avctx,
s->samples_end = (float*)((int8_t*)data + *data_size);
*data_size = 0;
if (!s->output_buffer_full) {
if (!s->output_buffer_full || s->packet_loss) {
s->output_buffer_full = 0;
s->buf_bit_size = buf_size << 3;
/** sanity check for the buffer length */
......@@ -1537,7 +1538,7 @@ static int decode_packet(AVCodecContext *avctx,
*data_size = (int8_t *)s->samples - (int8_t *)data;
return (s->output_buffer_full)?0: avctx->block_align;
return (s->output_buffer_full && !s->packet_loss)?0: avctx->block_align;
}
/**
......
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