summaryrefslogtreecommitdiff
path: root/libavformat/bintext.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-11-14 01:33:28 +0100
committerClément Bœsch <ubitux@gmail.com>2011-11-14 07:22:31 +0100
commit49651063da054070f11b1387bb50b85b7ffec591 (patch)
treecf56f124fdea3129b4089d9be4da84edbd1a220f /libavformat/bintext.c
parent7b79305a47773aed4926726f71a8347a18262f80 (diff)
Use AVIOContext.seekable instead of deprecated url_is_streamed.
Diffstat (limited to 'libavformat/bintext.c')
-rw-r--r--libavformat/bintext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/bintext.c b/libavformat/bintext.c
index a4f1d67ac7..8c155bd769 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -140,7 +140,7 @@ static int bintext_read_header(AVFormatContext *s,
st->codec->extradata[0] = 16;
st->codec->extradata[1] = 0;
- if (!url_is_streamed(pb)) {
+ if (pb->seekable) {
int got_width = 0;
bin->fsize = avio_size(pb);
if (ff_sauce_read(s, &bin->fsize, &got_width, 0) < 0)
@@ -200,7 +200,7 @@ static int xbin_read_header(AVFormatContext *s,
if (avio_read(pb, st->codec->extradata + 2, st->codec->extradata_size - 2) < 0)
return AVERROR(EIO);
- if (!url_is_streamed(pb)) {
+ if (pb->seekable) {
bin->fsize = avio_size(pb) - 9 - st->codec->extradata_size;
ff_sauce_read(s, &bin->fsize, NULL, 0);
avio_seek(pb, 9 + st->codec->extradata_size, SEEK_SET);
@@ -241,7 +241,7 @@ static int adf_read_header(AVFormatContext *s,
if (avio_read(pb, st->codec->extradata + 2 + 48, 4096) < 0)
return AVERROR(EIO);
- if (!url_is_streamed(pb)) {
+ if (pb->seekable) {
int got_width = 0;
bin->fsize = avio_size(pb) - 1 - 192 - 4096;
st->codec->width = 80<<3;
@@ -276,7 +276,7 @@ static int idf_read_header(AVFormatContext *s,
AVStream *st;
int got_width = 0;
- if (url_is_streamed(pb))
+ if (!pb->seekable)
return AVERROR(EIO);
st = init_stream(s, ap);