Revision 2874c81c libavformat/mpegtsenc.c
libavformat/mpegtsenc.c | ||
---|---|---|
433 | 433 |
st->codec->extradata_size > 0) { |
434 | 434 |
ts_st->adts = av_mallocz(sizeof(*ts_st->adts)); |
435 | 435 |
if (!ts_st->adts) |
436 |
return AVERROR_NOMEM;
|
|
436 |
return AVERROR(ENOMEM);
|
|
437 | 437 |
if (ff_adts_decode_extradata(s, ts_st->adts, st->codec->extradata, |
438 | 438 |
st->codec->extradata_size) < 0) |
439 | 439 |
return -1; |
... | ... | |
836 | 836 |
return -1; |
837 | 837 |
data = av_malloc(new_size); |
838 | 838 |
if (!data) |
839 |
return AVERROR_NOMEM;
|
|
839 |
return AVERROR(ENOMEM);
|
|
840 | 840 |
ff_adts_write_frame_header(adts, data, pkt->size, adts->pce_size); |
841 | 841 |
if (adts->pce_size) { |
842 | 842 |
memcpy(data+ADTS_HEADER_SIZE, adts->pce_data, adts->pce_size); |
Also available in: Unified diff