diff mov.c @ 5058:33a244b7ca65 libavformat

Add ff_ prefixes to exported symbols in libavformat/riff.h. patch by Daniel Verkamp, aniel drv nu
author diego
date Mon, 22 Jun 2009 23:09:34 +0000
parents e743de5125cd
children 0bac77c4a578
line wrap: on
line diff
--- a/mov.c	Mon Jun 22 16:52:02 2009 +0000
+++ b/mov.c	Mon Jun 22 23:09:34 2009 +0000
@@ -409,7 +409,7 @@
         get_be32(pb); /* max bitrate */
         get_be32(pb); /* avg bitrate */
 
-        st->codec->codec_id= codec_get_id(ff_mp4_obj_type, object_type_id);
+        st->codec->codec_id= ff_codec_get_id(ff_mp4_obj_type, object_type_id);
         dprintf(c->fc, "esds object type id %d\n", object_type_id);
         len = mp4_read_descr(c, pb, &tag);
         if (tag == MP4DecSpecificDescrTag) {
@@ -436,8 +436,8 @@
                         "sample rate %d ext sample rate %d\n", st->codec->channels,
                         cfg.object_type, cfg.ext_object_type,
                         cfg.sample_rate, cfg.ext_sample_rate);
-                if (!(st->codec->codec_id = codec_get_id(mp4_audio_types,
-                                                         cfg.object_type)))
+                if (!(st->codec->codec_id = ff_codec_get_id(mp4_audio_types,
+                                                            cfg.object_type)))
                     st->codec->codec_id = CODEC_ID_AAC;
             }
         }
@@ -777,7 +777,7 @@
 
         if (st->codec->codec_tag &&
             st->codec->codec_tag != format &&
-            (c->fc->video_codec_id ? codec_get_id(codec_movvideo_tags, format) != c->fc->video_codec_id
+            (c->fc->video_codec_id ? ff_codec_get_id(codec_movvideo_tags, format) != c->fc->video_codec_id
                                    : st->codec->codec_tag != MKTAG('j','p','e','g'))
            ){
             /* Multiple fourcc, we skip JPEG. This is not correct, we should
@@ -791,21 +791,21 @@
         sc->dref_id= dref_id;
 
         st->codec->codec_tag = format;
-        id = codec_get_id(codec_movaudio_tags, format);
+        id = ff_codec_get_id(codec_movaudio_tags, format);
         if (id<=0 && ((format&0xFFFF) == 'm'+('s'<<8) || (format&0xFFFF) == 'T'+('S'<<8)))
-            id = codec_get_id(codec_wav_tags, bswap_32(format)&0xFFFF);
+            id = ff_codec_get_id(ff_codec_wav_tags, bswap_32(format)&0xFFFF);
 
         if (st->codec->codec_type != CODEC_TYPE_VIDEO && id > 0) {
             st->codec->codec_type = CODEC_TYPE_AUDIO;
         } else if (st->codec->codec_type != CODEC_TYPE_AUDIO && /* do not overwrite codec type */
                    format && format != MKTAG('m','p','4','s')) { /* skip old asf mpeg4 tag */
-            id = codec_get_id(codec_movvideo_tags, format);
+            id = ff_codec_get_id(codec_movvideo_tags, format);
             if (id <= 0)
-                id = codec_get_id(codec_bmp_tags, format);
+                id = ff_codec_get_id(ff_codec_bmp_tags, format);
             if (id > 0)
                 st->codec->codec_type = CODEC_TYPE_VIDEO;
             else if(st->codec->codec_type == CODEC_TYPE_DATA){
-                id = codec_get_id(ff_codec_movsubtitle_tags, format);
+                id = ff_codec_get_id(ff_codec_movsubtitle_tags, format);
                 if(id > 0)
                     st->codec->codec_type = CODEC_TYPE_SUBTITLE;
             }