lavc: factorize ff_{thread_,re,}get_buffer error messages.
Coccinelle profile used: @@ expression r, ctx, f, loglevel, str, flags; @@ -if ((r = ff_get_buffer(ctx, f, flags)) < 0) { - av_log(ctx, loglevel, str); - return r; -} +if ((r = ff_get_buffer(ctx, f, flags)) < 0) + return r; @@ expression r, ctx, f, loglevel, str; @@ -if ((r = ff_reget_buffer(ctx, f)) < 0) { - av_log(ctx, loglevel, str); - return r; -} +if ((r = ff_reget_buffer(ctx, f)) < 0) + return r; @@ expression r, ctx, f, loglevel, str, flags; @@ -if ((r = ff_thread_get_buffer(ctx, f, flags)) < 0) { - av_log(ctx, loglevel, str); - return r; -} +if ((r = ff_thread_get_buffer(ctx, f, flags)) < 0) + return r; ...along with some manual patches for the remaining ones.
Showing
- libavcodec/4xm.c 2 additions, 6 deletionslibavcodec/4xm.c
- libavcodec/8bps.c 1 addition, 3 deletionslibavcodec/8bps.c
- libavcodec/8svx.c 1 addition, 3 deletionslibavcodec/8svx.c
- libavcodec/aacdec.c 1 addition, 3 deletionslibavcodec/aacdec.c
- libavcodec/aasc.c 1 addition, 3 deletionslibavcodec/aasc.c
- libavcodec/ac3dec.c 1 addition, 3 deletionslibavcodec/ac3dec.c
- libavcodec/adpcm.c 1 addition, 3 deletionslibavcodec/adpcm.c
- libavcodec/adxdec.c 1 addition, 3 deletionslibavcodec/adxdec.c
- libavcodec/alac.c 1 addition, 3 deletionslibavcodec/alac.c
- libavcodec/alsdec.c 1 addition, 3 deletionslibavcodec/alsdec.c
- libavcodec/amrnbdec.c 1 addition, 3 deletionslibavcodec/amrnbdec.c
- libavcodec/amrwbdec.c 1 addition, 3 deletionslibavcodec/amrwbdec.c
- libavcodec/anm.c 1 addition, 3 deletionslibavcodec/anm.c
- libavcodec/ansi.c 3 additions, 8 deletionslibavcodec/ansi.c
- libavcodec/apedec.c 1 addition, 3 deletionslibavcodec/apedec.c
- libavcodec/asvdec.c 1 addition, 3 deletionslibavcodec/asvdec.c
- libavcodec/atrac1.c 1 addition, 3 deletionslibavcodec/atrac1.c
- libavcodec/atrac3.c 1 addition, 3 deletionslibavcodec/atrac3.c
- libavcodec/aura.c 1 addition, 3 deletionslibavcodec/aura.c
- libavcodec/avrndec.c 1 addition, 3 deletionslibavcodec/avrndec.c
Loading
Please register or sign in to comment