[FFmpeg-cvslog] avformat/flvenc: Use AVFormatContext strict_std_compliance instead of AVCodecContext

Michael Niedermayer git at videolan.org
Thu Nov 6 15:05:26 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov  6 14:47:43 2014 +0100| [470e116e3fda4d433784e6ac70a09d8870442b16] | committer: Michael Niedermayer

avformat/flvenc: Use AVFormatContext strict_std_compliance instead of AVCodecContext

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=470e116e3fda4d433784e6ac70a09d8870442b16
---

 libavformat/flvenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 939e663..6266fb0 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -223,7 +223,7 @@ static int flv_write_header(AVFormatContext *s)
             }
             if (enc->codec_id == AV_CODEC_ID_MPEG4 ||
                 enc->codec_id == AV_CODEC_ID_H263) {
-                int error = enc->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL;
+                int error = s->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL;
                 av_log(s, error ? AV_LOG_ERROR : AV_LOG_WARNING,
                        "Codec %s is not supported in the official FLV specification,\n", avcodec_get_name(enc->codec_id));
 



More information about the ffmpeg-cvslog mailing list