diff options
author | Michel Bardiaux <mbardiaux@peaktime.be> | 2003-11-03 13:26:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-03 13:26:22 +0000 |
commit | 9b879566789379631f02b83be367ca55c88a1ae9 (patch) | |
tree | ee2b274b74329eb94548dc6c85bc966485c75d2a /libavcodec/oggvorbis.c | |
parent | 8bae9ddc91f6a083d420494bbd652d8258649066 (diff) | |
download | ffmpeg-9b879566789379631f02b83be367ca55c88a1ae9.tar.gz |
av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
Originally committed as revision 2469 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/oggvorbis.c')
-rw-r--r-- | libavcodec/oggvorbis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/oggvorbis.c b/libavcodec/oggvorbis.c index 7e525a5593..04eab33d8f 100644 --- a/libavcodec/oggvorbis.c +++ b/libavcodec/oggvorbis.c @@ -47,7 +47,7 @@ static int oggvorbis_encode_init(AVCodecContext *avccontext) { vorbis_info_init(&context->vi) ; if(oggvorbis_init_encoder(&context->vi, avccontext) < 0) { - fprintf(stderr, "oggvorbis_encode_init: init_encoder failed") ; + av_log(avccontext, AV_LOG_ERROR, "oggvorbis_encode_init: init_encoder failed") ; return -1 ; } vorbis_analysis_init(&context->vd, &context->vi) ; @@ -112,7 +112,7 @@ static int oggvorbis_encode_close(AVCodecContext *avccontext) { /* We need to write all the remaining packets into the stream * on closing */ - fprintf(stderr, "fixme: not all packets written on oggvorbis_encode_close()\n") ; + av_log(avccontext, AV_LOG_ERROR, "fixme: not all packets written on oggvorbis_encode_close()\n") ; /* while(vorbis_bitrate_flushpacket(&context->vd, &op)) { @@ -195,7 +195,7 @@ static int oggvorbis_decode_frame(AVCodecContext *avccontext, } if(op->packetno == 3) { - fprintf(stderr, "vorbis_decode: %d channel, %ldHz, encoder `%s'\n", + av_log(avccontext, AV_LOG_ERROR, "vorbis_decode: %d channel, %ldHz, encoder `%s'\n", context->vi.channels, context->vi.rate, context->vc.vendor); avccontext->channels = context->vi.channels ; |