aboutsummaryrefslogtreecommitdiff
path: root/multimedia/miro/ffmpeg-api-change.patch
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2011-12-29 00:08:35 -0200
committerRobby Workman <rworkman@slackbuilds.org>2011-12-31 00:24:59 -0600
commit1fe893777b18a46896815e7911f42d19616b9a71 (patch)
tree0900f457360e0aa5ccfa4e0d1f79472f408ffb34 /multimedia/miro/ffmpeg-api-change.patch
parent7caaeb5fed52b017dfc18c9d7bc24cff4ec0117b (diff)
multimedia/miro: Updated for version 4.0.4.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'multimedia/miro/ffmpeg-api-change.patch')
-rw-r--r--multimedia/miro/ffmpeg-api-change.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/multimedia/miro/ffmpeg-api-change.patch b/multimedia/miro/ffmpeg-api-change.patch
new file mode 100644
index 0000000000000..c281635685004
--- /dev/null
+++ b/multimedia/miro/ffmpeg-api-change.patch
@@ -0,0 +1,57 @@
+diff -Naur miro-4.0.4.orig/linux/miro-segmenter.c miro-4.0.4/linux/miro-segmenter.c
+--- miro-4.0.4.orig/linux/miro-segmenter.c 2011-12-22 14:45:47.000000000 +0000
++++ miro-4.0.4/linux/miro-segmenter.c 2011-12-28 22:22:48.550499302 +0000
+@@ -220,7 +220,11 @@
+ exit(1);
+ }
+
++#if LIBAVFORMAT_VERSION_MAJOR > 52
++ av_dump_format(oc, 0, input, 1);
++#else
+ dump_format(oc, 0, input, 1);
++#endif
+
+ if (video_st) {
+ codec = avcodec_find_decoder(video_st->codec->codec_id);
+@@ -233,7 +237,11 @@
+ }
+ }
+
++#if LIBAVFORMAT_VERSION_MAJOR > 52
++ if (avio_open(&oc->pb, output_filename, URL_WRONLY) < 0) {
++#else
+ if (url_fopen(&oc->pb, output_filename, URL_WRONLY) < 0) {
++#endif
+ fprintf(stderr, "Could not open '%s'\n", output_filename);
+ exit(1);
+ }
+@@ -274,10 +282,17 @@
+ }
+
+ if (segment_time - prev_segment_time >= segment_duration) {
++#if LIBAVFORMAT_VERSION_MAJOR > 52
++ avio_flush(oc->pb);
++ avio_close(oc->pb);
++
++ if (avio_open(&oc->pb, output_filename, URL_WRONLY) < 0) {
++#else
+ put_flush_packet(oc->pb);
+ url_fclose(oc->pb);
+
+ if (url_fopen(&oc->pb, output_filename, URL_WRONLY) < 0) {
++#endif
+ fprintf(stderr, "Could not open '%s'\n", output_filename);
+ break;
+ }
+@@ -307,7 +322,11 @@
+ av_freep(&oc->streams[i]);
+ }
+
++#if LIBAVFORMAT_VERSION_MAJOR > 52
++ avio_close(oc->pb);
++#else
+ url_fclose(oc->pb);
++#endif
+ av_free(oc);
+
+ /* End-of-transcode marker. */