diff mov.c @ 3967:4fd67f05bad9 libavformat

Use enum typers instead of int. Patch by Diego 'Flameeyes' Petten: flameeyes gmail
author benoit
date Thu, 02 Oct 2008 16:03:00 +0000
parents 8bdecea89071
children 549a09cf23fe
line wrap: on
line diff
--- a/mov.c	Thu Oct 02 15:52:04 2008 +0000
+++ b/mov.c	Thu Oct 02 16:03:00 2008 +0000
@@ -676,7 +676,7 @@
  * Compute codec id for 'lpcm' tag.
  * See CoreAudioTypes and AudioStreamBasicDescription at Apple.
  */
-static int mov_get_lpcm_codec_id(int bps, int flags)
+static enum CodecID mov_get_lpcm_codec_id(int bps, int flags)
 {
     if (flags & 1) { // floating point
         if (flags & 2) { // big endian
@@ -704,7 +704,7 @@
             else if (bps == 32) return CODEC_ID_PCM_S32LE;
         }
     }
-    return 0;
+    return CODEC_ID_NONE;
 }
 
 static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)