#include "libavcodec/get_bits.h"
#include "avformat.h"
+#include "internal.h"
#include "id3v1.h"
#include "libavutil/dict.h"
if (!st)
return AVERROR(ENOMEM);
- av_set_pts_info(st, 64, 1, samplerate);
+ avpriv_set_pts_info(st, 64, 1, samplerate);
st->start_time = 0;
st->duration = datalen;
int size, ret;
// FIXME!
- if (c->currentframe > c->totalframes)
- return -1;
+ if (c->currentframe >= c->totalframes)
+ return AVERROR_EOF;
size = st->index_entries[c->currentframe].size;