[FFmpeg-devel] Enable 16 bit tiff decoding and encoding

Michael Niedermayer michaelni at gmx.at
Fri Sep 23 23:56:07 CEST 2011


On Fri, Sep 23, 2011 at 11:00:00PM +0200, Jean First wrote:
[...]
> diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
> index eaa777a..eb1622d 100644
> --- a/libavcodec/tiffenc.c
> +++ b/libavcodec/tiffenc.c
> @@ -44,6 +44,7 @@ static const uint8_t type_sizes2[6] = {
>  };
>  
>  typedef struct TiffEncoderContext {
> +    AVClass *avclass;
>      AVCodecContext *avctx;
>      AVFrame picture;
>  
> @@ -219,6 +220,7 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
>      uint8_t *yuv_line = NULL;
>      int shift_h, shift_v;
>  
> +    s->avctx = avctx;
>      s->buf_start = buf;
>      s->buf = &ptr;
>      s->buf_size = buf_size;

above 2 hunks applied & pushed
as they seem independant bugfixes
thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- 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/20110923/3cffc7d1/attachment.asc>


More information about the ffmpeg-devel mailing list