1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for bug #288, refine the codec decode info frame failed. 1.0.21

This commit is contained in:
winlin 2015-01-14 11:32:19 +08:00
parent c80477d58e
commit b705ed0b90
3 changed files with 14 additions and 5 deletions

View file

@ -1491,14 +1491,16 @@ int SrsHls::on_video(SrsSharedPtrMessage* video)
sample->clear();
if ((ret = codec->video_avc_demux(video->payload, video->size, sample)) != ERROR_SUCCESS) {
if (sample->frame_type == SrsCodecVideoAVCFrameVideoInfoFrame) {
srs_warn("hls igone the info frame, ret=%d", ret);
return ERROR_SUCCESS;
}
srs_error("hls codec demux video failed. ret=%d", ret);
return ret;
}
// ignore info frame,
// @see https://github.com/winlinvip/simple-rtmp-server/issues/288#issuecomment-69863909
if (sample->frame_type == SrsCodecVideoAVCFrameVideoInfoFrame) {
return ret;
}
if (codec->video_codec_id != SrsCodecVideoAVC) {
return ret;
}