From e9d0ab5717a4aa7e9d52affaa8d8d76cb3e600e0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 13 Aug 2012 04:58:15 +0200 Subject: [PATCH] h264: fix x264 build detection Fixes Ticket1503 Signed-off-by: Michael Niedermayer --- libavcodec/h264_sei.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c index 0d0d88e4a3..81edeb27c6 100644 --- a/libavcodec/h264_sei.c +++ b/libavcodec/h264_sei.c @@ -111,6 +111,8 @@ static int decode_unregistered_user_data(H264Context *h, int size){ e= sscanf(user_data+16, "x264 - core %d"/*%s - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html*/, &build); if(e==1 && build>0) h->x264_build= build; + if(e==1 && build==1 && !strncmp(user_data+16, "x264 - core 0000", 16)) + h->x264_build = 67; if(s->avctx->debug & FF_DEBUG_BUGS) av_log(s->avctx, AV_LOG_DEBUG, "user data:\"%s\"\n", user_data+16); -- 2.11.0