diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-22 15:54:58 +0700 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-23 14:27:47 +0700 |
commit | 31f61b0d4f8d452becb44f044c739f9057900159 (patch) | |
tree | 624d61d8db11c10d9f01aabaf649aa1f45a497d3 /libavcodec/cpia.c | |
parent | fdeab95a823b10adda6f29d134122537c21578e2 (diff) | |
download | ffmpeg-31f61b0d4f8d452becb44f044c739f9057900159.tar.gz |
avcodec: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavcodec/cpia.c')
-rw-r--r-- | libavcodec/cpia.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cpia.c b/libavcodec/cpia.c index 07cdd50368..58833b2f26 100644 --- a/libavcodec/cpia.c +++ b/libavcodec/cpia.c @@ -113,12 +113,12 @@ static int cpia_decode_frame(AVCodecContext *avctx, src += 2; if (src_size < linelength) { - av_frame_set_decode_error_flags(frame, FF_DECODE_ERROR_INVALID_BITSTREAM); + frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM; av_log(avctx, AV_LOG_WARNING, "Frame ended unexpectedly!\n"); break; } if (src[linelength - 1] != EOL) { - av_frame_set_decode_error_flags(frame, FF_DECODE_ERROR_INVALID_BITSTREAM); + frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM; av_log(avctx, AV_LOG_WARNING, "Wrong line length %d or line not terminated properly (found 0x%02x)!\n", linelength, src[linelength - 1]); break; } @@ -139,7 +139,7 @@ static int cpia_decode_frame(AVCodecContext *avctx, */ for (j = 0; j < linelength - 1; j++) { if (y > y_end) { - av_frame_set_decode_error_flags(frame, FF_DECODE_ERROR_INVALID_BITSTREAM); + frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM; av_log(avctx, AV_LOG_WARNING, "Decoded data exceeded linesize!\n"); break; } @@ -159,7 +159,7 @@ static int cpia_decode_frame(AVCodecContext *avctx, */ for (j = 0; j < linelength - 4; ) { if (y + 1 > y_end || u > u_end || v > v_end) { - av_frame_set_decode_error_flags(frame, FF_DECODE_ERROR_INVALID_BITSTREAM); + frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM; av_log(avctx, AV_LOG_WARNING, "Decoded data exceeded linesize!\n"); break; } |