[FFmpeg-devel] [PATCH]Support more tiff variants in mov

Michael Niedermayer michaelni at gmx.at
Wed Apr 18 14:38:14 CEST 2012


On Wed, Apr 18, 2012 at 09:55:22AM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch fixes RGBA and monob tiff in mov, see ticket #1191.
> 
> Please comment, Carl Eugen

>  tiffenc.c |    2 ++
>  1 file changed, 2 insertions(+)
> 0e427b545cdbfc022d7a04a53c42cd380788aef3  patchtiffmov.diff
> diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
> index d7165dc..9d8b5e5 100644
> --- a/libavcodec/tiffenc.c
> +++ b/libavcodec/tiffenc.c
> @@ -27,6 +27,7 @@
>  
>  #include "libavutil/log.h"
>  #include "libavutil/opt.h"
> +#include "libavutil/pixdesc.h"
>  
>  #include "avcodec.h"
>  #include "internal.h"
> @@ -234,6 +235,7 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt,
>      s->subsampling[0] = 1;
>      s->subsampling[1] = 1;
>  
> +    avctx->bits_per_coded_sample = av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);

is this correct for the yuv formats too ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- 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/20120418/82f1135c/attachment.asc>


More information about the ffmpeg-devel mailing list