Projects
Multimedia
mediatomb
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 4
View file
mediatomb.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Jun 23 20:25:00 UTC 2011 - Manfred.Tremmel@iiv.de + +- included a patch to compile against new ffmpeg abi taken from + https://launchpadlibrarian.net/71985647/libav_0.7_support.patch + +------------------------------------------------------------------- Wed May 5 00:00:00 UTC 2010 - toni@links2linux.de - update to 0.12.1
View file
mediatomb.spec
Changed
@@ -19,6 +19,7 @@ Source1: rcmediatomb Source2: config.xml.tmp Source90: %{name}-rpmlintrc +Patch0: libav_0.7_support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: udev BuildRequires: file-devel @@ -28,7 +29,7 @@ BuildRequires: libexif-devel #BuildRequires: libextractor-devel BuildRequires: libexpat-devel -BuildRequires: libffmpeg_oldabi-devel +BuildRequires: libffmpeg-devel BuildRequires: libffmpegthumbnailer-devel BuildRequires: libjack-devel BuildRequires: libmp4v2-devel @@ -138,6 +139,7 @@ %prep %setup -q %{name}-%{version} +%patch0 -p1 %__cp %{SOURCE2} .
View file
libav_0.7_support.patch
Added
@@ -0,0 +1,64 @@ +=== modified file 'src/metadata/ffmpeg_handler.cc' +--- old/src/metadata/ffmpeg_handler.cc 2010-08-25 17:07:03 +0000 ++++ new/src/metadata/ffmpeg_handler.cc 2011-05-19 04:33:32 +0000 +@@ -89,6 +89,33 @@ + + Ref<StringConverter> sc = StringConverter::m2i(); + ++ /* Tabs are 4 characters here */ ++ typedef struct {const char *avname; metadata_fields_t field;} mapping_t; ++ static const mapping_t mapping[] = ++ { ++ {"title", M_TITLE}, ++ {"artist", M_ARTIST}, ++ {"album", M_ALBUM}, ++ {"date", M_DATE}, ++ {"genre", M_GENRE}, ++ {"comment", M_DESCRIPTION}, ++ {"track", M_TRACKNUMBER}, ++ {NULL, M_MAX}, ++ }; ++ ++ if (!pFormatCtx->metadata) ++ return; ++ for (const mapping_t *m = mapping; m->avname != NULL; m++) ++ { ++ AVMetadataTag *tag = NULL; ++ tag = av_metadata_get(pFormatCtx->metadata, m->avname, NULL, 0); ++ if (tag && tag->value && tag->value[0]) ++ { ++ log_debug("Added metadata %s: %s\n", m->avname, tag->value); ++ item->setMetadata(MT_KEYS[m->field].upnp, sc->convert(tag->value)); ++ } ++ } ++ /* Old algorithm (doesn't work with libav >= 0.7) + if (strlen(pFormatCtx->title) > 0) + { + log_debug("Added metadata title: %s\n", pFormatCtx->title); +@@ -131,6 +158,7 @@ + item->setMetadata(MT_KEYS[M_TRACKNUMBER].upnp, + sc->convert(String::from(pFormatCtx->track))); + } ++ */ + } + + // ffmpeg library calls +@@ -178,7 +206,7 @@ + for(i=0; i<pFormatCtx->nb_streams; i++) + { + AVStream *st = pFormatCtx->streams[i]; +- if((st != NULL) && (videoset == false) && (st->codec->codec_type == CODEC_TYPE_VIDEO)) ++ if((st != NULL) && (videoset == false) && (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)) + { + if (st->codec->codec_tag > 0) + { +@@ -209,7 +237,7 @@ + *y = st->codec->height; + } + } +- if(st->codec->codec_type == CODEC_TYPE_AUDIO) ++ if(st->codec->codec_type == AVMEDIA_TYPE_AUDIO) + { + // Increase number of audiochannels + audioch++; +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.