[FFmpeg-devel] Fwd: rtsp sdp parsing bugfix

gebiet at gmail.com gebiet
Fri Jul 25 17:01:25 CEST 2008


Hello,

I've found a bug in file libavformat/rtp_h264.c.

While parsing sdp answer, we don't set frame sizes.

For example, when server answers "a=framesize:96 768-400" we set
framesize to 7x6 because we process only one char for width and heights
atois.

Sorry for my english, here is patch:

371c371
<         while (*p && *p != '-' && (buf1-dst) < sizeof(buf1) - 1) {
---
>         while (*p && *p != '-' && (dst-buf1) < sizeof(buf1) - 1) {


Vadim Kalinsky
http://promzona.design.ru




More information about the ffmpeg-devel mailing list