[FFmpeg-devel] [PATCH] oggdec.c: url_fgetc() -> avio_r8() where return value is unchecked.

Ronald S. Bultje rsbultje
Mon Mar 7 16:43:07 CET 2011


---
 libavformat/oggdec.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index ff6b69a..380df92 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -229,15 +229,15 @@ ogg_read_page (AVFormatContext * s, int *str)
         return -1;
     }
 
-    if (url_fgetc (bc) != 0)      /* version */
+    if (avio_r8 (bc) != 0)      /* version */
         return -1;
 
-    flags = url_fgetc (bc);
+    flags = avio_r8 (bc);
     gp = avio_rl64 (bc);
     serial = avio_rl32 (bc);
     seq = avio_rl32 (bc);
     crc = avio_rl32 (bc);
-    nsegs = url_fgetc (bc);
+    nsegs = avio_r8 (bc);
 
     idx = ogg_find_stream (ogg, serial);
     if (idx < 0){
-- 
1.7.2.1




More information about the ffmpeg-devel mailing list