summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-11-20 20:50:29 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-11-20 20:50:29 +0000
commit50d5d129b4c2628e7c785247da14100a7355ffbb (patch)
tree23ad1dd86f4e3a832f55cd774e3fc560dbafe5ca
parent0fa45e19cebfc7ff078d6ce1749cc851577e688b (diff)
downloadffmpeg-streaming-50d5d129b4c2628e7c785247da14100a7355ffbb.zip
ffmpeg-streaming-50d5d129b4c2628e7c785247da14100a7355ffbb.tar.gz
use codec_id so that the codec does not need to be opened
Originally committed as revision 1263 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libav/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libav/utils.c b/libav/utils.c
index c5eaeac..5a9aa08 100644
--- a/libav/utils.c
+++ b/libav/utils.c
@@ -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:
OpenPOWER on IntegriCloud