summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMats Peterson <matsp888@yahoo.com>2016-03-03 08:25:58 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-04 04:02:19 +0100
commitba40b3520d91a3bff1637cbff54562e03b79bc2d (patch)
tree0d18031b8bbb1dae15dee2242a9326ed0444a3f8 /libavformat/internal.h
parent21234c835d2d003d390d462b6e1b2622e7b02c39 (diff)
lavf/utils: Normalize AVPacket.data to native endian in ff_get_packet_palette()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 63e0632a5d..37a8591ea2 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -588,9 +588,12 @@ int ff_reshuffle_raw_rgb(AVFormatContext *s, AVPacket **ppkt, AVCodecContext *en
*
* Use 0 for the ret parameter to check for side data only.
*
- * @param pkt pointer to the packet before calling ff_reshuffle_raw_rgb()
+ * @param pkt pointer to packet before calling ff_reshuffle_raw_rgb()
* @param ret return value from ff_reshuffle_raw_rgb(), or 0
+ * @param palette pointer to palette buffer
+ * @return negative error code or
+ * 1 if the packet has a palette, else 0
*/
-int ff_get_packet_palette(AVFormatContext *s, AVPacket *pkt, int ret, const uint8_t **palette);
+int ff_get_packet_palette(AVFormatContext *s, AVPacket *pkt, int ret, uint32_t *palette);
#endif /* AVFORMAT_INTERNAL_H */