Commit d5347886 authored by bellard's avatar bellard

use codec_id so that the codec does not need to be opened


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1263 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d96b3193
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment