[FFmpeg-devel] should ff_rtp_codec_id() be case insensitive?

Wei-Cheng Pan legnaleurc at gmail.com
Mon Aug 5 13:06:53 CEST 2013


Hi,

I had an rtsp stream like this:


SDP:                                                                                                                                                                        
v=0                                                                                                                                                                                           
o=RTSP 1375702538 771 IN IP4 0.0.0.0                                                                                                                                                          
s=RTSP server                                                                                                                                                                                 
c=IN IP4 0.0.0.0                                                                                                                                                                              
t=0 0                                                                                                                                                                                         
a=charset:Shift_JIS                                                                                                                                                                           
a=range:npt=0-                                                                                                                                                                                
a=control:*                                                                                                                                                                                   
a=etag:1234567890                                                                                                                                                                             
m=video 0 RTP/AVP 98                                                                                                                                                                          
b=AS:0                                                                                                                                                                                        
a=rtpmap:98 H264/90000                                                                                                                                                                        
a=control:trackID=1                                                                                                                                                                           
a=fmtp:98 packetization-mode=1; profile-level-id=644014; sprop-parameter-
sets=J2RAFKwsagUG3lhAAAD6QAA6mAE=,KO4CGLA=                                                                           
m=audio 0 RTP/AVP 0                                                                                                                                                                           
a=control:trackID=4                                                                                                                                                                           
a=rtpmap:0 pcmu/8000 


because pcmu (see the last line) is in lower case, ff_rtp_codec_id() in 
libavformat/rtp.c can not match the right codec.

This patch is base on tag n2.0.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_case_insensitive_rtp_payload.patch
Type: text/x-patch
Size: 792 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130805/e2dea992/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130805/e2dea992/attachment.asc>


More information about the ffmpeg-devel mailing list