projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c516c
)
Decode genre on asf/wma files.
author
Patrice Bensoussan
<patrice.bensoussan@free.fr>
Thu, 28 Dec 2006 00:24:24 +0000
(
00:24
+0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Thu, 28 Dec 2006 00:24:24 +0000
(
00:24
+0000)
patch by patrice.bensoussan _at_ free.fr
Originally committed as revision 7379 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/asf.c
patch
|
blob
|
history
diff --git
a/libavformat/asf.c
b/libavformat/asf.c
index
e6a38c9
..
0ec7331
100644
(file)
--- a/
libavformat/asf.c
+++ b/
libavformat/asf.c
@@
-371,6
+371,7
@@
static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_str16_nolen(pb, value_len, value,
value_len * 2);
if (strcmp(name,"WM/AlbumTitle")==0) { pstrcpy(s->album, sizeof(s->album), value); }
+ if (strcmp(name,"WM/Genre")==0) { pstrcpy(s->genre, sizeof(s->genre), value); }
av_free(value);
}
if ((value_type >= 2) && (value_type <= 5)) // boolean or DWORD or QWORD or WORD