gegl-0.2.0-ffmpeg-av_frame_alloc.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 6e9ac140385d28210afdd2ed2bf9b0533ca0aac1 Mon Sep 17 00:00:00 2001
  2. From: fafryd <dz1125.bug.tracker@gmail.com>
  3. Date: Sat, 5 Mar 2016 22:11:39 +0100
  4. Subject: [PATCH] use av_frame_alloc instead of avcodec_alloc_frame
  5. ---
  6. operations/external/ff-load.c | 2 +-
  7. operations/workshop/external/ff-save.c | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
  10. index 442ec5f..0b9d8e8 100644
  11. --- a/operations/external/ff-load.c
  12. +++ b/operations/external/ff-load.c
  13. @@ -321,7 +321,7 @@ prepare (GeglOperation *operation)
  14. p->width = p->enc->width;
  15. p->height = p->enc->height;
  16. p->frames = 10000000;
  17. - p->lavc_frame = avcodec_alloc_frame ();
  18. + p->lavc_frame = av_frame_alloc ();
  19. if (p->fourcc)
  20. g_free (p->fourcc);
  21. diff --git a/operations/workshop/external/ff-save.c b/operations/workshop/external/ff-save.c
  22. index 0f3105d..84d68c5 100644
  23. --- a/operations/workshop/external/ff-save.c
  24. +++ b/operations/workshop/external/ff-save.c
  25. @@ -537,7 +537,7 @@ alloc_picture (int pix_fmt, int width, int height)
  26. uint8_t *picture_buf;
  27. int size;
  28. - picture = avcodec_alloc_frame ();
  29. + picture = av_frame_alloc ();
  30. if (!picture)
  31. return NULL;
  32. size = avpicture_get_size (pix_fmt, width, height);
  33. --
  34. 2.7.2