Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
bff72634
Commit
bff72634
authored
Aug 03, 2009
by
Anton Khirnov
Committed by
Max Kellermann
Aug 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_plugin: convert metadata to generic format
parent
6f060081
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+1
-0
ffmpeg_plugin.c
src/decoder/ffmpeg_plugin.c
+3
-1
No files found.
NEWS
View file @
bff72634
...
@@ -10,6 +10,7 @@ ver 0.16 (20??/??/??)
...
@@ -10,6 +10,7 @@ ver 0.16 (20??/??/??)
- id3: revised "performer" tag support
- id3: revised "performer" tag support
* decoders:
* decoders:
- ffmpeg: support multiple tags
- ffmpeg: support multiple tags
- ffmpeg: convert metadata to generic format
- sndfile: new decoder plugin based on libsndfile
- sndfile: new decoder plugin based on libsndfile
- flac: load external cue sheet when no internal one
- flac: load external cue sheet when no internal one
* encoders:
* encoders:
...
...
src/decoder/ffmpeg_plugin.c
View file @
bff72634
...
@@ -353,13 +353,15 @@ ffmpeg_copy_metadata(struct tag *tag, AVMetadata *m,
...
@@ -353,13 +353,15 @@ ffmpeg_copy_metadata(struct tag *tag, AVMetadata *m,
static
bool
ffmpeg_tag_internal
(
struct
ffmpeg_context
*
ctx
)
static
bool
ffmpeg_tag_internal
(
struct
ffmpeg_context
*
ctx
)
{
{
struct
tag
*
tag
=
(
struct
tag
*
)
ctx
->
tag
;
struct
tag
*
tag
=
(
struct
tag
*
)
ctx
->
tag
;
const
AVFormatContext
*
f
=
ctx
->
format_context
;
AVFormatContext
*
f
=
ctx
->
format_context
;
tag
->
time
=
0
;
tag
->
time
=
0
;
if
(
f
->
duration
!=
(
int64_t
)
AV_NOPTS_VALUE
)
if
(
f
->
duration
!=
(
int64_t
)
AV_NOPTS_VALUE
)
tag
->
time
=
f
->
duration
/
AV_TIME_BASE
;
tag
->
time
=
f
->
duration
/
AV_TIME_BASE
;
#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(31<<8)+0)
#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(31<<8)+0)
av_metadata_conv
(
f
,
NULL
,
f
->
iformat
->
metadata_conv
);
ffmpeg_copy_metadata
(
tag
,
f
->
metadata
,
TAG_ITEM_TITLE
,
"title"
);
ffmpeg_copy_metadata
(
tag
,
f
->
metadata
,
TAG_ITEM_TITLE
,
"title"
);
ffmpeg_copy_metadata
(
tag
,
f
->
metadata
,
TAG_ITEM_ARTIST
,
"author"
);
ffmpeg_copy_metadata
(
tag
,
f
->
metadata
,
TAG_ITEM_ARTIST
,
"author"
);
ffmpeg_copy_metadata
(
tag
,
f
->
metadata
,
TAG_ITEM_ALBUM
,
"album"
);
ffmpeg_copy_metadata
(
tag
,
f
->
metadata
,
TAG_ITEM_ALBUM
,
"album"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment