X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsamidec.c;h=bc9b745e9cec6c1002fe1303fdaa8b9e4feaf753;hb=7277a4ace9f590d07b2234ad054aa39e9cb8747f;hp=948e1ed8b1316907444187b2b7c9d921c95caed9;hpb=9dc30d08114068ccfe65e89c3c46deee3e6a2289;p=ffmpeg diff --git a/libavformat/samidec.c b/libavformat/samidec.c index 948e1ed8b13..bc9b745e9ce 100644 --- a/libavformat/samidec.c +++ b/libavformat/samidec.c @@ -68,11 +68,17 @@ static int sami_read_header(AVFormatContext *s) while (!ff_text_eof(&tr)) { AVPacket *sub; const int64_t pos = ff_text_pos(&tr) - (c != 0); - int is_sync, n = ff_smil_extract_next_text_chunk(&tr, &buf, &c); + int is_sync, is_body, n = ff_smil_extract_next_text_chunk(&tr, &buf, &c); if (n == 0) break; + is_body = !av_strncasecmp(buf.str, "