[FFmpeg-cvslog] avcodec/rscc: Fix constant

Michael Niedermayer git at videolan.org
Thu Nov 17 14:13:46 EET 2016


ffmpeg | branch: release/3.2 | Michael Niedermayer <michael at niedermayer.cc> | Mon Oct 31 23:01:09 2016 +0100| [fa1ee9602632668c332ce9377641c779b820d636] | committer: Michael Niedermayer

avcodec/rscc: Fix constant

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit e167610794db8f2202f9dbe013c54f6b34d7f7a0)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fa1ee9602632668c332ce9377641c779b820d636
---

 libavcodec/rscc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c
index 7eb8776..d01f05c 100644
--- a/libavcodec/rscc.c
+++ b/libavcodec/rscc.c
@@ -314,7 +314,7 @@ static int rscc_decode_frame(AVCodecContext *avctx, void *data,
         const uint8_t *pal = av_packet_get_side_data(avpkt,
                                                      AV_PKT_DATA_PALETTE,
                                                      &size);
-        if (pal && size == AV_PKT_DATA_PALETTE) {
+        if (pal && size == AVPALETTE_SIZE) {
             frame->palette_has_changed = 1;
             memcpy(ctx->pal, pal, AVPALETTE_SIZE);
         } else if (pal) {



More information about the ffmpeg-cvslog mailing list