diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index db9543830381a65b472e4c93628f1651a3f8cf11..c55259974e3a8d9fdd3b40065cc2773c99eea240 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -1945,7 +1945,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
                             *data_size = sizeof(AVPicture);
                             goto the_end;
                         }else if(ret<0){
-                            printf("Error while decoding slice\n");
+                            fprintf(stderr,"Error while decoding slice\n");
 			    if(ret==DECODE_SLICE_FATAL_ERROR) return -1;
                         }
                     }