diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c index 76649894aa..b318faa77f 100644 --- a/libavcodec/msrle.c +++ b/libavcodec/msrle.c @@ -110,8 +110,8 @@ static void msrle_decode_pal4(MsrleContext *s) FETCH_NEXT_STREAM_BYTE(); s->frame.data[0][row_ptr + pixel_ptr] = stream_byte >> 4; pixel_ptr++; - if (i + 1 == rle_code && odd_pixel) - break; + if (i + 1 == rle_code && odd_pixel) + break; if (pixel_ptr >= s->avctx->width) break; s->frame.data[0][row_ptr + pixel_ptr] = stream_byte & 0x0F; @@ -254,9 +254,9 @@ static int msrle_decode_frame(AVCodecContext *avctx, { MsrleContext *s = (MsrleContext *)avctx->priv_data; - /* no supplementary picture */ - if (buf_size == 0) - return 0; + /* no supplementary picture */ + if (buf_size == 0) + return 0; s->buf = buf; s->size = buf_size; diff --git a/libavcodec/msvideo1.c b/libavcodec/msvideo1.c index 789d7e798b..3190efb9ef 100644 --- a/libavcodec/msvideo1.c +++ b/libavcodec/msvideo1.c @@ -303,15 +303,15 @@ static int msvideo1_decode_frame(AVCodecContext *avctx, { Msvideo1Context *s = (Msvideo1Context *)avctx->priv_data; - /* no supplementary picture */ - if (buf_size == 0) - return 0; + /* no supplementary picture */ + if (buf_size == 0) + return 0; s->buf = buf; s->size = buf_size; - s->frame.reference = 1; - s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; + s->frame.reference = 1; + s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; if (avctx->reget_buffer(avctx, &s->frame)) { av_log(s->avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); return -1; diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c index b7c09f95db..965fb729b0 100644 --- a/libavcodec/rpza.c +++ b/libavcodec/rpza.c @@ -254,15 +254,15 @@ static int rpza_decode_frame(AVCodecContext *avctx, { RpzaContext *s = (RpzaContext *)avctx->priv_data; - /* no supplementary picture */ - if (buf_size == 0) - return 0; + /* no supplementary picture */ + if (buf_size == 0) + return 0; s->buf = buf; s->size = buf_size; s->frame.reference = 1; - s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; + s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; if (avctx->reget_buffer(avctx, &s->frame)) { av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); return -1; diff --git a/libavcodec/smc.c b/libavcodec/smc.c index 24be54dbf1..be02b162d8 100644 --- a/libavcodec/smc.c +++ b/libavcodec/smc.c @@ -453,16 +453,16 @@ static int smc_decode_frame(AVCodecContext *avctx, { SmcContext *s = (SmcContext *)avctx->priv_data; - /* no supplementary picture */ - if (buf_size == 0) - return 0; + /* no supplementary picture */ + if (buf_size == 0) + return 0; s->buf = buf; s->size = buf_size; s->frame.reference = 1; - s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | - FF_BUFFER_HINTS_REUSABLE | FF_BUFFER_HINTS_READABLE; + s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | + FF_BUFFER_HINTS_REUSABLE | FF_BUFFER_HINTS_READABLE; if (avctx->reget_buffer(avctx, &s->frame)) { printf ("reget_buffer() failed\n"); return -1;