[FFmpeg-devel] [PATCH]Support flic with 904 bytes extradata

Michael Niedermayer michaelni at gmx.at
Sun Apr 22 02:52:20 CEST 2012


On Sun, Apr 22, 2012 at 12:28:35AM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch fixes ticket #1234 for me.
> 
> Please comment, Carl Eugen

>  flicvideo.c |    5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 80d070ae843a82f42bcf69dc59fc1f53b1585602  patchflic904.diff
> diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c
> index 1754eef..c1e485b 100644
> --- a/libavcodec/flicvideo.c
> +++ b/libavcodec/flicvideo.c
> @@ -86,6 +86,7 @@ static av_cold int flic_decode_init(AVCodecContext *avctx)
>      if (avctx->extradata_size != 0 &&
>          avctx->extradata_size != 12 &&
>          avctx->extradata_size != 128 &&
> +        avctx->extradata_size != 904 &&
>          avctx->extradata_size != 1024) {

>          av_log(avctx, AV_LOG_ERROR, "Expected extradata of 12, 128 or 1024 bytes, got %d\n", avctx->extradata_size);

the err msg needs an update too

the rest should be ok if it works

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120422/45c28663/attachment.asc>


More information about the ffmpeg-devel mailing list