Skip to content

Commit

Permalink
try to fix hls problem, print the video packets.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Feb 10, 2015
1 parent b8d4f68 commit 66931a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions trunk/src/app/srs_app_hls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,8 @@ int SrsHls::on_video(SrsSharedPtrMessage* __video)
srs_error("hls codec demux video failed. ret=%d", ret);
return ret;
}
srs_info("video decoded, type=%d, codec=%d, avc=%d, cts=%d, size=%d, time=%"PRId64,
sample->frame_type, codec->video_codec_id, sample->avc_packet_type, sample->cts, video->size, video->timestamp);

// ignore info frame,
// @see https://github.com/winlinvip/simple-rtmp-server/issues/288#issuecomment-69863909
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/kernel/srs_kernel_codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ int SrsAvcAacCodec::video_avc_demux(char* data, int size, SrsCodecSample* sample
// ignored.
}

srs_info("video decoded, type=%d, codec=%d, avc=%d, time=%d, size=%d",
srs_info("video decoded, type=%d, codec=%d, avc=%d, cts=%d, size=%d",
frame_type, video_codec_id, avc_packet_type, composition_time, size);

return ret;
Expand Down

0 comments on commit 66931a8

Please sign in to comment.