Module: libav Branch: master Commit: 247764a592f83521f9c1ccdc900b00a8b84f3c87
Author: Martin Storsjö <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Mon Feb 23 22:03:44 2015 +0200 rtpdec_h264: Remove unnecessary struct padding There's no point in adding padding in the allocation of a depacketizer specific context struct. Signed-off-by: Martin Storsjö <[email protected]> --- libavformat/rtpdec_h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 13dd7e9..b6f2444 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -346,7 +346,7 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, static PayloadContext *h264_new_context(void) { - return av_mallocz(sizeof(PayloadContext) + FF_INPUT_BUFFER_PADDING_SIZE); + return av_mallocz(sizeof(PayloadContext)); } static void h264_free_context(PayloadContext *data) _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
