Mercurial > libavcodec.hg
comparison h264_sei.c @ 11526:75a2c166f11a libavcodec
Ignore x264 build=0 as there is no such version, this restores previous
behavior approximately.
author | michael |
---|---|
date | Sun, 21 Mar 2010 22:23:37 +0000 |
parents | 31645cf81fcb |
children | 7dd2a45249a9 |
comparison
equal
deleted
inserted
replaced
11525:892d04e7c4e5 | 11526:75a2c166f11a |
---|---|
107 user_data[i]= get_bits(&s->gb, 8); | 107 user_data[i]= get_bits(&s->gb, 8); |
108 } | 108 } |
109 | 109 |
110 user_data[i]= 0; | 110 user_data[i]= 0; |
111 e= sscanf(user_data+16, "x264 - core %d"/*%s - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html*/, &build); | 111 e= sscanf(user_data+16, "x264 - core %d"/*%s - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html*/, &build); |
112 if(e==1 && build>=0) | 112 if(e==1 && build>0) |
113 h->x264_build= build; | 113 h->x264_build= build; |
114 | 114 |
115 if(s->avctx->debug & FF_DEBUG_BUGS) | 115 if(s->avctx->debug & FF_DEBUG_BUGS) |
116 av_log(s->avctx, AV_LOG_DEBUG, "user data:\"%s\"\n", user_data+16); | 116 av_log(s->avctx, AV_LOG_DEBUG, "user data:\"%s\"\n", user_data+16); |
117 | 117 |