mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #471, api response the width and height. 3.0.2
This commit is contained in:
parent
04bea781ca
commit
1b1a2a1e63
7 changed files with 33 additions and 9 deletions
|
@ -84,6 +84,9 @@ public:
|
|||
SrsAvcProfile avc_profile;
|
||||
// level_idc, H.264-AVC-ISO_IEC_14496-10.pdf, page 45.
|
||||
SrsAvcLevel avc_level;
|
||||
// the width and height in codec info.
|
||||
int width;
|
||||
int height;
|
||||
public:
|
||||
bool has_audio;
|
||||
SrsCodecAudio acodec;
|
||||
|
@ -166,7 +169,8 @@ public:
|
|||
* when got video info for stream.
|
||||
*/
|
||||
virtual int on_video_info(SrsRequest* req,
|
||||
SrsCodecVideo vcodec, SrsAvcProfile avc_profile, SrsAvcLevel avc_level
|
||||
SrsCodecVideo vcodec, SrsAvcProfile avc_profile, SrsAvcLevel avc_level,
|
||||
int width, int height
|
||||
);
|
||||
/**
|
||||
* when got audio info for stream.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue