OSDN Git Service

ac3dec: use AVFrame accessor functions
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Mar 2013 21:23:54 +0000 (22:23 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Mar 2013 22:18:22 +0000 (23:18 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ac3dec.c

index 5dde004..51ef187 100644 (file)
@@ -1406,7 +1406,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
         }
     }
 
-    frame->decode_error_flags = err ? FF_DECODE_ERROR_INVALID_BITSTREAM : 0;
+    av_frame_set_decode_error_flags(frame, err ? FF_DECODE_ERROR_INVALID_BITSTREAM : 0);
 
     /* keep last block for error concealment in next frame */
     for (ch = 0; ch < s->out_channels; ch++)