Browse Source

avformat/mpegts: Warn if ffio_ensure_seekback() failed

Should silence CID1257005

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
a4f387bf56
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/mpegts.c

+ 2
- 1
libavformat/mpegts.c View File

@@ -2454,7 +2454,8 @@ static int mpegts_read_header(AVFormatContext *s)
int len;
int64_t pos, probesize = s->probesize ? s->probesize : s->probesize2;

ffio_ensure_seekback(pb, probesize);
if (ffio_ensure_seekback(pb, probesize) < 0)
av_log(s, AV_LOG_WARNING, "Failed to allocate buffers for seekback\n");

/* read the first 8192 bytes to get packet size */
pos = avio_tell(pb);


Loading…
Cancel
Save