Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-02-26 00:34:36 +0300
committerMartin Storsjö <martin@martin.st>2015-02-28 23:53:46 +0300
commit0662440b991361fdb5e732712d997a73e4692e34 (patch)
treecba447dad3eaf8c291d67e128dd01e96388c332b /libavformat/rtpenc.c
parent12b3459979f5ea6481660cd2c99a0381e2b5ba37 (diff)
rtpenc_aac: Set a default value for max_frames_per_packet at init
This avoids having to conditionally set the default within the packetizer function. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r--libavformat/rtpenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 0c1f57a50d..b306a4cd9a 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -271,6 +271,8 @@ static int rtp_write_header(AVFormatContext *s1)
goto defaultcase;
case AV_CODEC_ID_AAC:
s->num_frames = 0;
+ if (!s->max_frames_per_packet)
+ s->max_frames_per_packet = 5;
goto defaultcase;
default:
defaultcase: