Merge remote-tracking branch 'qatar/master'
* qatar/master: lavc: always align height by 32 pixel raw: add 10bit YUV definitions nut: support 10bit YUV mpegvideo_enc: separate declarations and statements oma: make header compile standalone vp3: Reorder some functions to fix VP3 build with Theora disabled. build: fix standalone compilation of ADX encoder build: fix standalone compilation of ADPCM decoders build: fix standalone compilation of mpc7/mpc8 decoders 4xm: Use bytestream2 functions to prevent overreads bytestream: add a new set of bytestream functions with overread checking mpegts: Suppress invalid timebase warnings on DMB streams. mpegts: Fix typo in handling sections in the PMT. vc1dec: Use the right pointer type for the tmp pointer Conflicts: libavcodec/4xm.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/vp3.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -762,7 +762,8 @@ static int read_sl_header(PESContext *pes, SLConfigDescr *sl, const uint8_t *buf
|
||||
if (cts != AV_NOPTS_VALUE)
|
||||
pes->pts = cts;
|
||||
|
||||
avpriv_set_pts_info(pes->st, sl->timestamp_len, 1, sl->timestamp_res);
|
||||
if (sl->timestamp_len && sl->timestamp_res)
|
||||
avpriv_set_pts_info(pes->st, sl->timestamp_len, 1, sl->timestamp_res);
|
||||
|
||||
return (get_bits_count(&gb) + 7) >> 3;
|
||||
}
|
||||
@@ -1496,7 +1497,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
||||
if (idx >= 0) {
|
||||
st = ts->stream->streams[idx];
|
||||
} else {
|
||||
st = avformat_new_stream(pes->stream, NULL);
|
||||
st = avformat_new_stream(ts->stream, NULL);
|
||||
st->id = pid;
|
||||
st->codec->codec_type = AVMEDIA_TYPE_DATA;
|
||||
}
|
||||
|
Reference in New Issue
Block a user