summaryrefslogtreecommitdiff
path: root/graphics/gimp-gap/files/patch-libgapvidapi_gap_vid_api_ffmpeg.c
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2007-08-22 17:10:16 +0000
committerMichael Johnson <ahze@FreeBSD.org>2007-08-22 17:10:16 +0000
commitc2f25bd954cf39d7b1a72906628a19d0d69f7c09 (patch)
tree3b018184f633e599ebbd246e461df077403de68a /graphics/gimp-gap/files/patch-libgapvidapi_gap_vid_api_ffmpeg.c
parentUse make's `-j' flag to build (but not install) on all available CPUs. (diff)
Add gimp-gap
The GIMP-GAP (GIMP Animation Package) is a collection of Plug-Ins to extend the GIMP with capabilities to edit and create Animations as sequences of single frames.
Diffstat (limited to 'graphics/gimp-gap/files/patch-libgapvidapi_gap_vid_api_ffmpeg.c')
-rw-r--r--graphics/gimp-gap/files/patch-libgapvidapi_gap_vid_api_ffmpeg.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/graphics/gimp-gap/files/patch-libgapvidapi_gap_vid_api_ffmpeg.c b/graphics/gimp-gap/files/patch-libgapvidapi_gap_vid_api_ffmpeg.c
new file mode 100644
index 000000000000..ea5a8d98177a
--- /dev/null
+++ b/graphics/gimp-gap/files/patch-libgapvidapi_gap_vid_api_ffmpeg.c
@@ -0,0 +1,31 @@
+--- libgapvidapi/gap_vid_api_ffmpeg.c.orig 2007-08-22 09:59:27.000000000 -0400
++++ libgapvidapi/gap_vid_api_ffmpeg.c 2007-08-22 10:06:41.000000000 -0400
+@@ -1721,7 +1721,7 @@
+ );
+ }
+ #endif
+- rfps = ic->streams[ii]->r_frame_rate;
++ rfps = ic->streams[ii]->r_frame_rate.num;
+ acc->workaround_bugs = FF_BUG_AUTODETECT;
+ acc->error_resilience = 2;
+ acc->error_concealment = 3;
+@@ -1734,15 +1734,15 @@
+ {
+ acc->flags|= CODEC_FLAG_TRUNCATED;
+ }
+- if (acc->frame_rate != rfps)
++ if (acc->time_base.num != rfps)
+ {
+ printf("\nSeems that stream %d comes from film source: %2.2f->%2.2f\n",
+- ii, (float)acc->frame_rate / (float)acc->frame_rate_base,
+- (float)rfps / (float)acc->frame_rate_base);
++ ii, (float)acc->time_base.num / (float)acc->time_base.den,
++ (float)rfps / (float)acc->time_base.den);
+ }
+
+ /* update the current frame rate to match the stream frame rate */
+- gvahand->framerate = (gdouble)rfps / (gdouble)acc->frame_rate_base;
++ gvahand->framerate = (gdouble)rfps / (gdouble)acc->time_base.den;
+ }
+ break;
+ default: