diff options
Diffstat (limited to 'libavformat/tty.c')
-rw-r--r-- | libavformat/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/tty.c b/libavformat/tty.c index d576fd4..767006b 100644 --- a/libavformat/tty.c +++ b/libavformat/tty.c @@ -47,14 +47,14 @@ static int efi_read(AVFormatContext *avctx, uint64_t start_pos) int len; url_fseek(pb, start_pos, SEEK_SET); - if (get_byte(pb) != 0x1A) + if (avio_r8(pb) != 0x1A) return -1; #define GET_EFI_META(name,size) \ - len = get_byte(pb); \ + len = avio_r8(pb); \ if (len < 1 || len > size) \ return -1; \ - if (get_buffer(pb, buf, size) == size) { \ + if (avio_read(pb, buf, size) == size) { \ buf[len] = 0; \ av_metadata_set2(&avctx->metadata, name, buf, 0); \ } |