[packages/gmerlin-avdecoder] - up to 1.2.0
baggins
baggins at pld-linux.org
Thu Feb 14 14:19:01 CET 2013
commit 0edf9fbafb94ba7795b3a25d42a9c10471284895
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Feb 14 14:18:50 2013 +0100
- up to 1.2.0
gmerlin-avdecoder-ffmpeg-0.8.patch | 78 --------------------------------------
gmerlin-avdecoder.spec | 10 ++---
2 files changed, 5 insertions(+), 83 deletions(-)
---
diff --git a/gmerlin-avdecoder.spec b/gmerlin-avdecoder.spec
index d27ad99..ed69cbe 100644
--- a/gmerlin-avdecoder.spec
+++ b/gmerlin-avdecoder.spec
@@ -6,12 +6,12 @@
Summary: Multiformat media decoding library
Summary(pl.UTF-8): Biblioteka dekodująca wiele formatów multimedialnych
Name: gmerlin-avdecoder
-Version: 1.1.0
-Release: 11
+Version: 1.2.0
+Release: 1
License: GPL v2+
Group: Libraries
Source0: http://downloads.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz
-# Source0-md5: c1ea663e9da631453eec4ac79138b6c5
+# Source0-md5: 37b19266b098d9d05bb05ebef138ffbd
Patch0: %{name}-cflags.patch
Patch1: %{name}-ffmpeg-0.8.patch
Patch2: %{name}-link.patch
@@ -25,7 +25,7 @@ BuildRequires: ffmpeg-devel >= 0.7
BuildRequires: flac-devel >= 1.1.0
BuildRequires: gavl-devel >= 1.2.0
BuildRequires: gettext-devel
-BuildRequires: gmerlin-devel >= 1.0.0
+BuildRequires: gmerlin-devel >= 1.2.0
BuildRequires: libcdio-devel >= 0.76
BuildRequires: libdts-devel >= 0.0.2
#BuildRequires: libdvdread-devel >= 0.9.5
@@ -141,7 +141,7 @@ Summary: avdec plugins for Gmerlin library
Summary(pl.UTF-8): Wtyczki avdec dla biblioteki Gmerlin
Group: Libraries
Requires: %{name} = %{version}-%{release}
-Requires: gmerlin >= 1.0.0
+Requires: gmerlin >= 1.2.0
%description -n gmerlin-plugin-avdec
avdec plugins for Gmerlin library.
diff --git a/gmerlin-avdecoder-ffmpeg-0.8.patch b/gmerlin-avdecoder-ffmpeg-0.8.patch
index 7c75e75..51557a0 100644
--- a/gmerlin-avdecoder-ffmpeg-0.8.patch
+++ b/gmerlin-avdecoder-ffmpeg-0.8.patch
@@ -1,81 +1,3 @@
---- gmerlin-avdecoder-1.1.0/lib/demux_ffmpeg.c.orig 2011-01-07 17:59:57.000000000 +0100
-+++ gmerlin-avdecoder-1.1.0/lib/demux_ffmpeg.c 2011-07-27 18:38:47.552019582 +0200
-@@ -583,7 +583,7 @@
- #if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52, 29, 0)
- register_protocol(&bgav_protocol);
- #else
-- av_register_protocol(&bgav_protocol);
-+ av_register_protocol2(&bgav_protocol, sizeof(bgav_protocol));
- #endif
-
- #if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52, 26, 0)
-@@ -629,13 +629,13 @@ static int open_ffmpeg(bgav_demuxer_cont
- {
- switch(avfc->streams[i]->codec->codec_type)
- {
-- case CODEC_TYPE_AUDIO:
-+ case AVMEDIA_TYPE_AUDIO:
- init_audio_stream(ctx, avfc->streams[i], i);
- break;
-- case CODEC_TYPE_VIDEO:
-+ case AVMEDIA_TYPE_VIDEO:
- init_video_stream(ctx, avfc->streams[i], i);
- break;
-- case CODEC_TYPE_SUBTITLE:
-+ case AVMEDIA_TYPE_SUBTITLE:
- break;
- default:
- break;
-@@ -654,16 +654,19 @@ static int open_ffmpeg(bgav_demuxer_cont
- priv->avfc->iformat->long_name);
-
- /* Metadata */
-- if(avfc->title[0])
-- ctx->tt->cur->metadata.title = bgav_strdup(avfc->title);
-- if(avfc->author[0])
-- ctx->tt->cur->metadata.author = bgav_strdup(avfc->author);
-- if(avfc->copyright[0])
-- ctx->tt->cur->metadata.copyright = bgav_strdup(avfc->copyright);
-- if(avfc->album[0])
-- ctx->tt->cur->metadata.album = bgav_strdup(avfc->album);
-- if(avfc->genre[0])
-- ctx->tt->cur->metadata.genre = bgav_strdup(avfc->genre);
-+ {
-+ AVDictionaryEntry *ade;
-+ if((ade = av_dict_get(avfc->metadata, "TITLE", NULL, 0)) != NULL)
-+ ctx->tt->cur->metadata.title = bgav_strdup(ade->value);
-+ if((ade = av_dict_get(avfc->metadata, "ARTIST", NULL, 0)) != NULL)
-+ ctx->tt->cur->metadata.author = bgav_strdup(ade->value);
-+ if((ade = av_dict_get(avfc->metadata, "COPYRIGHT", NULL, 0)) != NULL)
-+ ctx->tt->cur->metadata.copyright = bgav_strdup(ade->value);
-+ if((ade = av_dict_get(avfc->metadata, "ALBUM", NULL, 0)) != NULL)
-+ ctx->tt->cur->metadata.album = bgav_strdup(ade->value);
-+ if((ade = av_dict_get(avfc->metadata, "GENRE", NULL, 0)) != NULL)
-+ ctx->tt->cur->metadata.genre = bgav_strdup(ade->value);
-+ }
-
- return 1;
- }
-@@ -739,7 +742,7 @@ static int next_packet_ffmpeg(bgav_demux
- s->data.video.palette_changed = 1;
- }
-
-- if(pkt.flags&PKT_FLAG_KEY)
-+ if(pkt.flags&AV_PKT_FLAG_KEY)
- PACKET_SET_KEYFRAME(p);
- bgav_stream_done_packet_write(s, p);
-
---- gmerlin-avdecoder-1.1.0/lib/video_ffmpeg.c.orig 2011-01-07 17:59:57.000000000 +0100
-+++ gmerlin-avdecoder-1.1.0/lib/video_ffmpeg.c 2011-07-27 18:39:15.985353869 +0200
-@@ -836,7 +836,7 @@ static int init_ffmpeg(bgav_stream_t * s
- if(s->action == BGAV_STREAM_PARSE)
- return 1;
-
-- priv->ctx->codec_type = CODEC_TYPE_VIDEO;
-+ priv->ctx->codec_type = AVMEDIA_TYPE_VIDEO;
-
- priv->ctx->bit_rate = 0;
-
--- gmerlin-avdecoder-1.1.0/lib/Makefile.am.orig 2011-01-06 05:55:55.000000000 +0100
+++ gmerlin-avdecoder-1.1.0/lib/Makefile.am 2011-07-27 18:44:12.105363783 +0200
@@ -130,7 +130,7 @@ endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gmerlin-avdecoder.git/commitdiff/0edf9fbafb94ba7795b3a25d42a9c10471284895
More information about the pld-cvs-commit
mailing list