rmdec: fix av_log level and context
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 00:19:48 +0000 (01:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 00:19:48 +0000 (01:19 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rmdec.c

index ffc6e5b..bcfff41 100644 (file)
@@ -271,7 +271,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
         case DEINT_ID_VBRF:
             break;
         default:
-            av_log(NULL,0,"Unknown interleaver %X\n", ast->deint_id);
+            av_log(s, AV_LOG_ERROR, "Unknown interleaver %X\n", ast->deint_id);
             return AVERROR_INVALIDDATA;
         }