[gegl] ff-load: Clean up deprecation warning from ffmpeg



commit 0657af91d91467d70fed6345ae8bd9bf24fe5cb9
Author: �yvind Kolås <pippin gimp org>
Date:   Tue Jan 26 00:09:51 2010 +0000

    ff-load: Clean up deprecation warning from ffmpeg
    
    Use avcodec_decode_video2 which takes a packet directly instead of
    using avcodec_decode_video with the internal of the packet.

 operations/external/ff-load.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
index be7f441..c3339f0 100755
--- a/operations/external/ff-load.c
+++ b/operations/external/ff-load.c
@@ -221,8 +221,8 @@ decode_frame (GeglOperation *operation,
               p->coded_buf = p->pkt.data;
             }
           decoded_bytes =
-            avcodec_decode_video (p->video_st->codec, p->lavc_frame,
-                                  &got_picture, p->coded_buf, p->coded_bytes);
+            avcodec_decode_video2 (p->video_st->codec, p->lavc_frame,
+                                  &got_picture, &p->pkt);
           if (decoded_bytes < 0)
             {
               fprintf (stderr, "avcodec_decode_video failed for %s\n",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]