[FFmpeg-cvslog] r14532 - trunk/libavcodec/utils.c

pross subversion
Mon Aug 4 09:40:07 CEST 2008


Author: pross
Date: Mon Aug  4 09:40:07 2008
New Revision: 14532

Log:
Make avcodec_string() and av_get_bits_per_sample() report the sample size for CODEC_ID_PCM_ZORK


Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Mon Aug  4 09:40:07 2008
@@ -1181,6 +1181,7 @@ void avcodec_string(char *buf, int buf_s
         case CODEC_ID_PCM_U8:
         case CODEC_ID_PCM_ALAW:
         case CODEC_ID_PCM_MULAW:
+        case CODEC_ID_PCM_ZORK:
             bitrate = enc->sample_rate * enc->channels * 8;
             break;
         default:
@@ -1290,6 +1291,7 @@ int av_get_bits_per_sample(enum CodecID 
     case CODEC_ID_PCM_MULAW:
     case CODEC_ID_PCM_S8:
     case CODEC_ID_PCM_U8:
+    case CODEC_ID_PCM_ZORK:
         return 8;
     case CODEC_ID_PCM_S16BE:
     case CODEC_ID_PCM_S16LE:




More information about the ffmpeg-cvslog mailing list