Skip to content

Commit 4008ac7

Browse files
committed
优化sei流约束
1 parent 361f40d commit 4008ac7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ijkmedia/ijkplayer/ff_ffplay.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3839,7 +3839,13 @@ static int read_thread(void *arg)
38393839
}
38403840

38413841
//parse SEI message
3842-
if (is->video_st && is->video_st->codecpar) {
3842+
// if (ic->iformat->name != NULL && strcmp(ic->iformat->name, "flv") == 0) {
3843+
// printf("\nThe stream is FLV format,%s\n",ic->iformat->name);
3844+
// } else {
3845+
// printf("\nThe stream is not FLV format,%s\n",ic->iformat->name);
3846+
// }
3847+
3848+
if (ic->iformat->name != NULL && strcmp(ic->iformat->name, "flv") == 0 && is->video_st && is->video_st->codecpar) {
38433849
AVCodecParameters *in_codecpar = is->video_st->codecpar;
38443850
// if (in_codecpar->codec_type == AVMEDIA_TYPE_VIDEO && in_codecpar->codec_id == AV_CODEC_ID_H264) {
38453851
if (pkt->stream_index == is->video_stream) {

0 commit comments

Comments
 (0)