[FFmpeg-cvslog] r17407 - trunk/libavformat/nsvdec.c

aurel subversion
Wed Feb 18 01:02:38 CET 2009


Author: aurel
Date: Wed Feb 18 01:02:38 2009
New Revision: 17407

Log:
use new metadata API in nsv demuxer

Modified:
   trunk/libavformat/nsvdec.c

Modified: trunk/libavformat/nsvdec.c
==============================================================================
--- trunk/libavformat/nsvdec.c	Wed Feb 18 01:00:38 2009	(r17406)
+++ trunk/libavformat/nsvdec.c	Wed Feb 18 01:02:38 2009	(r17407)
@@ -337,15 +337,7 @@ static int nsv_parse_NSVf_header(AVForma
                 break;
             *p++ = '\0';
             PRINT(("NSV NSVf INFO: %s='%s'\n", token, value));
-            if (!strcmp(token, "ASPECT")) {
-                /* don't care */
-            } else if (!strcmp(token, "CREATOR") || !strcmp(token, "Author")) {
-                strncpy(s->author, value, 512-1);
-            } else if (!strcmp(token, "Copyright")) {
-                strncpy(s->copyright, value, 512-1);
-            } else if (!strcmp(token, "TITLE") || !strcmp(token, "Title")) {
-                strncpy(s->title, value, 512-1);
-            }
+            av_metadata_set(&s->metadata, token, value);
         }
         av_free(strings);
     }




More information about the ffmpeg-cvslog mailing list