[FFmpeg-devel] [PATCH]libx264: Disable global header for AVC-Intra encoding
Michael Niedermayer
michaelni at gmx.at
Sun Sep 27 23:04:59 CEST 2015
On Sat, Sep 26, 2015 at 02:25:04PM +0000, Thomas Mundt wrote:
> This will fix AVC-Intra encoding in .mov container.
> Regards,Thomas
> libx264.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> 1d153d16cdb505ea33cab12979de3b0e50e3b459 libx264.diff
> libavcodec/libx264.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
> index 58fcfb0..b4a14cf 100644
> --- a/libavcodec/libx264.c
> +++ b/libavcodec/libx264.c
> @@ -560,13 +560,15 @@ static av_cold int X264_init(AVCodecContext *avctx)
> x4->params.b_bluray_compat = x4->bluray_compat;
> x4->params.b_vfr_input = 0;
> }
> - if (x4->avcintra_class >= 0)
> + if (x4->avcintra_class >= 0) {
> #if X264_BUILD >= 142
> x4->params.i_avcintra_class = x4->avcintra_class;
> + avctx->flags &= ~CODEC_FLAG_GLOBAL_HEADER;
> #else
AVCodecContext.flags is set by the user application not by the codec
see libavcodec/avcodec.h
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150927/0b6202e1/attachment.sig>
More information about the ffmpeg-devel
mailing list