lavc: Consistently prefix input buffer defines
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
@@ -711,7 +711,7 @@ static void new_pes_packet(PESContext *pes, AVPacket *pkt)
|
||||
av_log(pes->stream, AV_LOG_WARNING, "PES packet size mismatch\n");
|
||||
pes->flags |= AV_PKT_FLAG_CORRUPT;
|
||||
}
|
||||
memset(pkt->data + pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
|
||||
// Separate out the AC3 substream from an HDMV combined TrueHD/AC3 PID
|
||||
if (pes->sub_st && pes->stream_type == 0x83 && pes->extended_stream_id == 0x76)
|
||||
@@ -864,7 +864,7 @@ static int mpegts_push_data(MpegTSFilter *filter,
|
||||
|
||||
/* allocate pes buffer */
|
||||
pes->buffer = av_buffer_alloc(pes->total_size +
|
||||
FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (!pes->buffer)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
@@ -971,7 +971,7 @@ skip:
|
||||
new_pes_packet(pes, ts->pkt);
|
||||
pes->total_size = MAX_PES_PAYLOAD;
|
||||
pes->buffer = av_buffer_alloc(pes->total_size +
|
||||
FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (!pes->buffer)
|
||||
return AVERROR(ENOMEM);
|
||||
ts->stop_parse = 1;
|
||||
@@ -1436,7 +1436,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
|
||||
memcmp(st->codec->extradata, *pp, 4))
|
||||
avpriv_request_sample(fc, "DVB sub with multiple IDs");
|
||||
} else {
|
||||
st->codec->extradata = av_malloc(4 + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
st->codec->extradata = av_malloc(4 + AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (st->codec->extradata) {
|
||||
st->codec->extradata_size = 4;
|
||||
memcpy(st->codec->extradata, *pp, 4);
|
||||
@@ -1482,7 +1482,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
|
||||
ext_desc_tag == 0x80) { /* User defined (provisional Opus) */
|
||||
if (!st->codec->extradata) {
|
||||
st->codec->extradata = av_mallocz(sizeof(opus_default_extradata) +
|
||||
FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (!st->codec->extradata)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
@@ -1956,7 +1956,7 @@ static void finished_reading_packet(AVFormatContext *s, int raw_packet_size)
|
||||
static int handle_packets(MpegTSContext *ts, int nb_packets)
|
||||
{
|
||||
AVFormatContext *s = ts->stream;
|
||||
uint8_t packet[TS_PACKET_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
|
||||
uint8_t packet[TS_PACKET_SIZE + AV_INPUT_BUFFER_PADDING_SIZE];
|
||||
const uint8_t *data;
|
||||
int packet_num, ret = 0;
|
||||
|
||||
@@ -1979,7 +1979,7 @@ static int handle_packets(MpegTSContext *ts, int nb_packets)
|
||||
|
||||
ts->stop_parse = 0;
|
||||
packet_num = 0;
|
||||
memset(packet + TS_PACKET_SIZE, 0, FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
memset(packet + TS_PACKET_SIZE, 0, AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
for (;;) {
|
||||
if (ts->stop_parse > 0)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user