[FFmpeg-devel] [PATCH 1/3] sdp: print a=framesize for MJPEG
Andrey Utkin
andrey.utkin at corp.bluecherry.net
Tue Dec 8 13:10:31 CET 2015
Signed-off-by: Andrey Utkin <andrey.utkin at corp.bluecherry.net>
---
libavformat/sdp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 2ab37a8..27112ef 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -657,6 +657,8 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
if (payload_type >= RTP_PT_PRIVATE)
av_strlcatf(buff, size, "a=rtpmap:%d JPEG/90000\r\n",
payload_type);
+ av_strlcatf(buff, size, "a=framesize:%d %d-%d\r\n",
+ payload_type, c->width, c->height);
break;
case AV_CODEC_ID_ADPCM_G722:
if (payload_type >= RTP_PT_PRIVATE)
--
2.6.3
More information about the ffmpeg-devel
mailing list