Browse Source

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ö <martin@martin.st>
tags/n2.6
Martin Storsjö 11 years ago
parent
commit
247764a592
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtpdec_h264.c

+ 1
- 1
libavformat/rtpdec_h264.c View File

@@ -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)


Loading…
Cancel
Save