From 4008ac78a3195090f807258f037d2fedcc3d9539 Mon Sep 17 00:00:00 2001 From: tonychan Date: Thu, 10 Aug 2023 15:19:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96sei=E6=B5=81=E7=BA=A6?= =?UTF-8?q?=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ijkmedia/ijkplayer/ff_ffplay.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ijkmedia/ijkplayer/ff_ffplay.c b/ijkmedia/ijkplayer/ff_ffplay.c index c5ed568b..abd6a572 100755 --- a/ijkmedia/ijkplayer/ff_ffplay.c +++ b/ijkmedia/ijkplayer/ff_ffplay.c @@ -3839,7 +3839,13 @@ static int read_thread(void *arg) } //parse SEI message - if (is->video_st && is->video_st->codecpar) { +// if (ic->iformat->name != NULL && strcmp(ic->iformat->name, "flv") == 0) { +// printf("\nThe stream is FLV format,%s\n",ic->iformat->name); +// } else { +// printf("\nThe stream is not FLV format,%s\n",ic->iformat->name); +// } + + if (ic->iformat->name != NULL && strcmp(ic->iformat->name, "flv") == 0 && is->video_st && is->video_st->codecpar) { AVCodecParameters *in_codecpar = is->video_st->codecpar; // if (in_codecpar->codec_type == AVMEDIA_TYPE_VIDEO && in_codecpar->codec_id == AV_CODEC_ID_H264) { if (pkt->stream_index == is->video_stream) {