mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-10 09:31:06 +02:00
avformat/flvenc: Use AVFormatContext strict_std_compliance instead of AVCodecContext
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e591608753
commit
470e116e3f
@ -223,7 +223,7 @@ static int flv_write_header(AVFormatContext *s)
|
|||||||
}
|
}
|
||||||
if (enc->codec_id == AV_CODEC_ID_MPEG4 ||
|
if (enc->codec_id == AV_CODEC_ID_MPEG4 ||
|
||||||
enc->codec_id == AV_CODEC_ID_H263) {
|
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,
|
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));
|
"Codec %s is not supported in the official FLV specification,\n", avcodec_get_name(enc->codec_id));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user