Browse Source

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>
tags/n1.0
Marton Balint Michael Niedermayer 13 years ago
parent
commit
b99e9ee938
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/ac3dec.c

+ 2
- 0
libavcodec/ac3dec.c 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; *got_frame_ptr = 1;
*(AVFrame *)data = s->frame; *(AVFrame *)data = s->frame;




Loading…
Cancel
Save