avformat/mpegts: check avio_tell() return code before using it
Fixes Ticket2962 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e024953722
commit
5dc6c0ea9e
@ -1862,8 +1862,10 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
pos = avio_tell(ts->stream->pb);
|
pos = avio_tell(ts->stream->pb);
|
||||||
av_assert0(pos >= TS_PACKET_SIZE);
|
if (pos >= 0) {
|
||||||
ts->pos47_full = pos - TS_PACKET_SIZE;
|
av_assert0(pos >= TS_PACKET_SIZE);
|
||||||
|
ts->pos47_full = pos - TS_PACKET_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
if (tss->type == MPEGTS_SECTION) {
|
if (tss->type == MPEGTS_SECTION) {
|
||||||
if (is_start) {
|
if (is_start) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user