mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avformat/dfa: use avio_feof()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
b173f5c155
commit
bd6f145820
@ -84,12 +84,12 @@ static int dfa_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
uint32_t frame_size;
|
uint32_t frame_size;
|
||||||
int ret, first = 1;
|
int ret, first = 1;
|
||||||
|
|
||||||
if (pb->eof_reached)
|
if (avio_feof(pb))
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
|
|
||||||
if (av_get_packet(pb, pkt, 12) != 12)
|
if (av_get_packet(pb, pkt, 12) != 12)
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
while (!pb->eof_reached) {
|
while (!avio_feof(pb)) {
|
||||||
if (!first) {
|
if (!first) {
|
||||||
ret = av_append_packet(pb, pkt, 12);
|
ret = av_append_packet(pb, pkt, 12);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user