public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-gfx/gmic/files: gmic-1.5.8.2-ffmpeg.patch
@ 2014-01-27  2:51 Tim Harder (radhermit)
  0 siblings, 0 replies; only message in thread
From: Tim Harder (radhermit) @ 2014-01-27  2:51 UTC (permalink / raw
  To: gentoo-commits

radhermit    14/01/27 02:51:07

  Added:                gmic-1.5.8.2-ffmpeg.patch
  Log:
  Version bump. Drop doc use flag, online reference manual should be used or downloaded instead.
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

Revision  Changes    Path
1.1                  media-gfx/gmic/files/gmic-1.5.8.2-ffmpeg.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/gmic/files/gmic-1.5.8.2-ffmpeg.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/gmic/files/gmic-1.5.8.2-ffmpeg.patch?rev=1.1&content-type=text/plain

Index: gmic-1.5.8.2-ffmpeg.patch
===================================================================
--- gmic-1.5.8.2/src/CImg.h
+++ gmic-1.5.8.2/src/CImg.h
@@ -319,6 +319,7 @@
 extern "C" {
 #include <libavformat/avformat.h>
 #include <libavcodec/avcodec.h>
+#include <libavutil/mathematics.h>
 #include <libswscale/swscale.h>
 }
 #endif
@@ -45789,7 +45790,11 @@
         AVPacket pkt;
         int got_packet;
         av_init_packet(&pkt);
+#if LIBAVCODEC_VERSION_INT<AV_VERSION_INT(54,1,0)
+        out_size = avcodec_encode_video(c,video_outbuf,video_outbuf_size,picture);
+#else
         out_size = avcodec_encode_video2(c,&pkt,picture,&got_packet);
+#endif
         if (got_packet) {
           pkt.pts = av_rescale_q(c->coded_frame->pts,c->time_base,video_str->time_base);
           if (c->coded_frame->key_frame) pkt.flags|=AV_PKT_FLAG_KEY;





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-27  2:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27  2:51 [gentoo-commits] gentoo-x86 commit in media-gfx/gmic/files: gmic-1.5.8.2-ffmpeg.patch Tim Harder (radhermit)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox