[FFmpeg-cvslog] lavc/cfhd: Sanitize avpriv_report_missing_feature() usage.

Clément Bœsch u at pkh.me
Sun Mar 6 21:27:10 CET 2016


On Sun, Mar 06, 2016 at 09:23:15PM +0100, Carl Eugen Hoyos wrote:
> ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Mar  6 21:21:44 2016 +0100| [719276b8609e595094820cf2d5ac525b43b9b82e] | committer: Carl Eugen Hoyos
> 
> lavc/cfhd: Sanitize avpriv_report_missing_feature() usage.
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=719276b8609e595094820cf2d5ac525b43b9b82e
> ---
> 
>  libavcodec/cfhd.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
> index 98f16d3..d82e432 100644
> --- a/libavcodec/cfhd.c
> +++ b/libavcodec/cfhd.c
> @@ -333,7 +333,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
>              av_log(avctx, AV_LOG_DEBUG, "Sample type? %"PRIu16"\n", data);
>          else if (tag == 10) {
>              if (data != 0) {
> -                avpriv_report_missing_feature(avctx, "Transform type of %"PRIu16" is unsupported\n", data);
> +                avpriv_report_missing_feature(avctx, "Transform type of %"PRIu16, data);
>                  ret = AVERROR_PATCHWELCOME;
>                  break;
>              }
> @@ -343,7 +343,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
>              bytestream2_skipu(&gb, data * 4);
>          } else if (tag == 23) {
>              av_log(avctx, AV_LOG_DEBUG, "Skip frame\n");
> -            avpriv_report_missing_feature(avctx, "Skip frame not supported\n");
> +            avpriv_report_missing_feature(avctx, "Skip frame\n");

extra \n?

similar issue in lavf/riffdec btw.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20160306/55f9e65c/attachment.sig>


More information about the ffmpeg-cvslog mailing list