File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments