diff options
author | Martin Storsjö <martin@martin.st> | 2012-03-19 20:37:10 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-03-20 10:53:47 +0200 |
commit | 4fa57d524f16524e9735f99b387167149dbf5a7b (patch) | |
tree | 4ef1afda4d72d8c44e45c52cc845e06011e4f607 /libavformat/rtpenc.c | |
parent | 0d0b81f941a2d5011bec754ba48e84a479306661 (diff) | |
download | ffmpeg-4fa57d524f16524e9735f99b387167149dbf5a7b.tar.gz |
libavformat: Set the default for the max_delay option to -1
Make the muxers/demuxers that use the field handle the default
-1 in the same way as 0.
This allows distinguishing an intentionally set 0 from the default
value where the user hasn't set it.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r-- | libavformat/rtpenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 6a1be499e2..78121ed3c5 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -126,7 +126,7 @@ static int rtp_write_header(AVFormatContext *s1) s->max_payload_size = s1->packet_size - 12; s->max_frames_per_packet = 0; - if (s1->max_delay) { + if (s1->max_delay > 0) { if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) { int frame_size = av_get_audio_frame_duration(st->codec, 0); if (!frame_size) |