aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-04 18:00:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-04 18:00:15 +0100
commit39d76907c9fb8ac95bf0fe5ef95b50089ec564a9 (patch)
tree24706aaccc4fa39ee4dc16ebed0147de891d3369 /libavcodec/utils.c
parent1825d6d096102c2a220d61bad34009f583ca4a5e (diff)
parent067713f15989dd0b8c0888a3b43fd193819a1058 (diff)
downloadffmpeg-39d76907c9fb8ac95bf0fe5ef95b50089ec564a9.tar.gz
Merge commit '067713f15989dd0b8c0888a3b43fd193819a1058' into release/0.10
* commit '067713f15989dd0b8c0888a3b43fd193819a1058': rtmp: rename data_size to size lavc: set the default rc_initial_buffer_occupancy 4xm: Reject not a multiple of 16 dimension Conflicts: avconv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 99bf27ce16..b3f485b170 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -895,6 +895,9 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
} else if (avctx->channel_layout) {
avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
}
+
+ if (!avctx->rc_initial_buffer_occupancy)
+ avctx->rc_initial_buffer_occupancy = avctx->rc_buffer_size * 3 / 4;
}
avctx->pts_correction_num_faulty_pts =