aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-06 19:59:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-08 02:09:17 +0100
commit1447dc59de9f179a99a91ca9a9d210d918b90486 (patch)
tree7ce2cf8c69a2d7e2bdec786063c43d68955fd55e /libavformat/mpegts.c
parentde3ef79250f39f04fb194e808933509dc4a7f397 (diff)
downloadffmpeg-1447dc59de9f179a99a91ca9a9d210d918b90486.tar.gz
avio: deprecate url_fgetc and remove all it uses
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit e51975392d85e72801193123945a35fb5221248f)
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index ba8b3c8b54..1b6f5e3e5d 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1312,8 +1312,8 @@ static int mpegts_resync(AVFormatContext *s)
int c, i;
for(i = 0;i < MAX_RESYNC_SIZE; i++) {
- c = url_fgetc(pb);
- if (c < 0)
+ c = avio_r8(pb);
+ if (url_feof(pb))
return -1;
if (c == 0x47) {
avio_seek(pb, -1, SEEK_CUR);