[FFmpeg-soc] [soc]: r3626 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Tue Aug 26 18:08:46 CEST 2008


Author: ramiro
Date: Tue Aug 26 18:08:46 2008
New Revision: 3626

Log:
Prevent users from trying to use this encoder unless they know the bitstream
is not yet playable on MLP-supporting hardware and are ok with it.


Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Tue Aug 26 18:08:46 2008
@@ -449,6 +449,15 @@ static av_cold int mlp_encode_init(AVCod
     unsigned int frame_size_size;
     unsigned int substr, index, index2, index3, subblock;
 
+    if (avctx->strict_std_compliance > -1 /* inofficial */) {
+        av_log(avctx, AV_LOG_ERROR, "The bitstream generated by this encoder "
+                                    "does not yet play on MLP-supporting "
+                                    "hardware, but it is decodable by FFmpeg. "
+                                    "To use it anyways, you must set "
+                                    "\"-strict inofficial\".\n");
+        return -1;
+    }
+
     ctx->avctx = avctx;
 
     ctx->mlp_sample_rate = mlp_sample_rate(avctx->sample_rate);



More information about the FFmpeg-soc mailing list