diff --git a/libavformat/act.c b/libavformat/act.c
index e55b43170b87cdda87a5c3450081ca939313829f..2c80480dcd13ad020e890de71fb16a4a2f8afd0f 100644
--- a/libavformat/act.c
+++ b/libavformat/act.c
@@ -93,7 +93,7 @@ static int read_header(AVFormatContext *s,
     st->codec->codec_id=CODEC_ID_G729;
 
     avio_seek(pb, 257, SEEK_SET);
-    msec=get_le16(pb);
+    msec=avio_rl16(pb);
     sec=avio_r8(pb);
     min=get_le32(pb);
 
diff --git a/libavformat/bintext.c b/libavformat/bintext.c
index 8c155bd7699632eefadeefe392336833073a9a19..a39ab291e4395da47d1a3365c8ce0cbe90cf95f5 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -179,8 +179,8 @@ static int xbin_read_header(AVFormatContext *s,
         return AVERROR(ENOMEM);
 
     avio_skip(pb, 5);
-    st->codec->width   = get_le16(pb)<<3;
-    st->codec->height  = get_le16(pb);
+    st->codec->width   = avio_rl16(pb)<<3;
+    st->codec->height  = avio_rl16(pb);
     fontheight         = avio_r8(pb);
     st->codec->height *= fontheight;
     flags              = avio_r8(pb);