summaryrefslogtreecommitdiff
path: root/libavformat/dfa.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2014-08-24 14:28:02 +0000
committerPaul B Mahol <onemda@gmail.com>2014-08-30 15:50:22 +0000
commitbd6f1458207788254d0d160052d9b0113e9c4ec2 (patch)
tree07afedaf0c8c64cb746c0057816b09cb47158e4a /libavformat/dfa.c
parentb173f5c15572cc82f68128599722e689df4ff137 (diff)
downloadffmpeg-bd6f1458207788254d0d160052d9b0113e9c4ec2.tar.gz
avformat/dfa: use avio_feof()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/dfa.c')
-rw-r--r--libavformat/dfa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dfa.c b/libavformat/dfa.c
index dfa0590e2e..450bc2125c 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) {