[FFmpeg-cvslog] avcodec/rscc: Fix constant

Michael Niedermayer git at videolan.org
Tue Nov 1 00:21:05 EET 2016


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

avcodec/rscc: Fix constant

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 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