#define RAND_TAG MKBETAG('R','a','n','d')
-typedef struct {
+typedef struct FilmstripDemuxContext {
int leading;
} FilmstripDemuxContext;
st->nb_frames = avio_rb32(pb);
if (avio_rb16(pb) != 0) {
- av_log_ask_for_sample(s, "unsupported packing method\n");
- return AVERROR_INVALIDDATA;
+ avpriv_request_sample(s, "Unsupported packing method");
+ return AVERROR_PATCHWELCOME;
}
avio_skip(pb, 2);
return AVERROR(EIO);
pkt->dts = avio_tell(s->pb) / (st->codec->width * (st->codec->height + film->leading) * 4);
pkt->size = av_get_packet(s->pb, pkt, st->codec->width * st->codec->height * 4);
- avio_skip(s->pb, st->codec->width * film->leading * 4);
+ avio_skip(s->pb, st->codec->width * (int64_t) film->leading * 4);
if (pkt->size < 0)
return pkt->size;
pkt->flags |= AV_PKT_FLAG_KEY;