On 20/10/13 15:11, Yusuke Nakamura wrote: > From: Michael Niedermayer <[email protected]> > > Signed-off-by: Michael Niedermayer <[email protected]> > --- > libavcodec/h264_parser.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c > index a30e2c3..05a40c7 100644 > --- a/libavcodec/h264_parser.c > +++ b/libavcodec/h264_parser.c > @@ -198,7 +198,7 @@ static inline int parse_nal_units(AVCodecParserContext *s, > case NAL_SLICE: > case NAL_IDR_SLICE: > // Do not walk the whole buffer just to decode slice header > - if (state & 0x1f == NAL_IDR_SLICE || (state >> 5) & 0x3 == 0) { > + if ((state & 0x1f) == NAL_IDR_SLICE || ((state >> 5) & 0x3) == > 0) { > /* IDR or disposable slice > * No need to decode many bytes because MMCOs shall not be > present. */ > if (src_length > 60)
Good catch. lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
