summaryrefslogtreecommitdiffstats
path: root/libhb/internal.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-05-29 19:59:57 +0000
committerjstebbins <[email protected]>2014-05-29 19:59:57 +0000
commitc50cf79a313ab76473a69f6ed8625afcb1a2c40b (patch)
treef4f33d97d109481c6e41d7290eb73572d9edc03c /libhb/internal.h
parent0340cdc16c3cf51f24a2ddfcb40cd8d3b7257e17 (diff)
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
Diffstat (limited to 'libhb/internal.h')
-rw-r--r--libhb/internal.h4
1 files changed, 4 insertions, 0 deletions
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):