From c50cf79a313ab76473a69f6ed8625afcb1a2c40b Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 29 May 2014 19:59:57 +0000 Subject: libhb: Fix decoding avi with palette ... and probably other formats that use a palette. The palette is stored in AVPacket side data which we did not read. So read the side data and stash it in hb_buffer_t so that it can be used later by the decoder. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6207 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libhb/internal.h') diff --git a/libhb/internal.h b/libhb/internal.h index 5255c6fac..e3b81cd0c 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -130,6 +130,10 @@ struct hb_buffer_s enum { HOST, DEVICE } buffer_location; } cl; + // libav may attach AV_PKT_DATA_PALETTE side data to some AVPackets + // Store this data here when read and pass to decoder. + hb_buffer_t * palette; + // PICTURESUB subtitle packets: // Video packets (after processing by the hb_sync_video work-object): -- cgit v1.2.3