[FFmpeg-devel] [PATCH]Fix palette in ipmovie

Michael Niedermayer michaelni at gmx.at
Mon Dec 26 21:23:57 CET 2011


On Sat, Dec 24, 2011 at 03:15:08AM +0100, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch fixes the palette in interplay files.
> 
> Please comment, Carl Eugen

>  ipmovie.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 02499d53dabc960af6da233408a93e6dc7b45c95  patchipmoviepal.diff
> diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c
> index 24dc24b..db4ef5e 100644
> --- a/libavformat/ipmovie.c
> +++ b/libavformat/ipmovie.c
> @@ -450,13 +450,15 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb,
>                  break;
>              }
>              j = 4;  /* offset of first palette data */
> +            s->palette[0] = 0xFF << 24;

i suspect the whole palette should be set to ffU<<24  at the begin of
ipmovie_read_header() and not one entry on each update

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- 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/20111226/71c7172e/attachment.asc>


More information about the ffmpeg-devel mailing list