]> git.sesse.net Git - ffmpeg/commitdiff
use codec_id so that the codec does not need to be opened
authorFabrice Bellard <fabrice@bellard.org>
Wed, 20 Nov 2002 20:50:29 +0000 (20:50 +0000)
committerFabrice Bellard <fabrice@bellard.org>
Wed, 20 Nov 2002 20:50:29 +0000 (20:50 +0000)
Originally committed as revision 1263 to svn://svn.ffmpeg.org/ffmpeg/trunk

libav/utils.c

index c5eaeac05d50d465efcbed9979b060f54ef7f1ce..5a9aa082f4ebaadca402403ee4297fb92b3e8e6e 100644 (file)
@@ -774,7 +774,7 @@ int av_write_frame(AVFormatContext *s, int stream_index, const uint8_t *buf,
         if (st->codec.frame_size <= 1) {
             frame_size = size / st->codec.channels;
             /* specific hack for pcm codecs because no frame size is provided */
-            switch(st->codec.codec->id) {
+            switch(st->codec.codec_id) {
             case CODEC_ID_PCM_S16LE:
             case CODEC_ID_PCM_S16BE:
             case CODEC_ID_PCM_U16LE: