Skip to content

Commit

Permalink
优化sei流约束
Browse files Browse the repository at this point in the history
  • Loading branch information
tonychanchen committed Aug 10, 2023
1 parent 361f40d commit 4008ac7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ijkmedia/ijkplayer/ff_ffplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4008ac7

Please sign in to comment.