diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-06 19:59:29 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-07 10:51:21 -0500 |
commit | e51975392d85e72801193123945a35fb5221248f (patch) | |
tree | 3d08f63c4b923608f59a81b3705e6ed92492c54a /libavformat/mpegts.c | |
parent | 655e45e7dfafc494044cc52f8889fc6da75eff6a (diff) | |
download | ffmpeg-streaming-e51975392d85e72801193123945a35fb5221248f.zip ffmpeg-streaming-e51975392d85e72801193123945a35fb5221248f.tar.gz |
avio: deprecate url_fgetc and remove all it uses
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index b1b329e..2b55de9 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); |