X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fdfa.c;h=450bc2125c8e5b26ab9aca2886f8c312fd303044;hb=9e59a7be1cc9bd840d91f78c55b7f4953659319b;hp=dfa0590e2e28de85055aeaa4c468faaa27b272ed;hpb=a90364d001eb8289e1c423bf9884bb0affc3f662;p=ffmpeg diff --git a/libavformat/dfa.c b/libavformat/dfa.c index dfa0590e2e2..450bc2125c8 100644 --- a/libavformat/dfa.c +++ b/libavformat/dfa.c @@ -84,12 +84,12 @@ static int dfa_read_packet(AVFormatContext *s, AVPacket *pkt) uint32_t frame_size; int ret, first = 1; - if (pb->eof_reached) + if (avio_feof(pb)) return AVERROR_EOF; if (av_get_packet(pb, pkt, 12) != 12) return AVERROR(EIO); - while (!pb->eof_reached) { + while (!avio_feof(pb)) { if (!first) { ret = av_append_packet(pb, pkt, 12); if (ret < 0) {