[FFmpeg-devel] [PATCH] tiff: Return more meaningful error codes
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Mar 29 10:59:54 CEST 2015
James Almer <jamrial <at> gmail.com> writes:
> > case TIFF_LZW:
> > return ff_lzw_encode(s->lzws, src, n);
> > default:
> > - return -1;
> > + return AVERROR_BUG;
>
> AVERROR(EINVAL) here.
>
> If i do "ffmpeg -i INPUT -compression_algo 2 OUTPUT.tiff"
> I'm not triggering a bug, I'm passing an
> invalid/unsupported argument to the encoder.
Additionally, please print an appropriate message.
Carl Eugen
More information about the ffmpeg-devel
mailing list