[FFmpeg-devel] [PATCH] ffplay: fix two const warnings.

Nicolas George nicolas.george at normalesup.org
Wed Mar 7 20:03:28 CET 2012


No change in assembly code produced on x86_64.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 ffplay.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 93097e1..bf0a834 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1673,7 +1673,7 @@ static int input_request_frame(AVFilterLink *link)
     } else {
         picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, link->w, link->h);
         av_image_copy(picref->data, picref->linesize,
-                      priv->frame->data, priv->frame->linesize,
+                      (const uint8_t **)(void **)priv->frame->data, priv->frame->linesize,
                       picref->format, link->w, link->h);
     }
     av_free_packet(&pkt);
@@ -3217,7 +3217,7 @@ int main(int argc, char **argv)
     }
 
     av_init_packet(&flush_pkt);
-    flush_pkt.data = "FLUSH";
+    flush_pkt.data = (char *)(intptr_t)"FLUSH";
 
     is = stream_open(input_filename, file_iformat);
     if (!is) {
-- 
1.7.9.1



More information about the ffmpeg-devel mailing list