ac3dec: set decode_error_flags field in ac3 codec

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Marton Balint 2012-07-20 23:28:03 +02:00 committed by Michael Niedermayer
parent 016a472009
commit b99e9ee938
1 changed files with 2 additions and 0 deletions

View File

@ -1433,6 +1433,8 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
}
}
s->frame.decode_error_flags = err ? FF_DECODE_ERROR_INVALID_BITSTREAM : 0;
*got_frame_ptr = 1;
*(AVFrame *)data = s->frame;