- case NUV_EXTRADATA:
- if (!ctx->rtjpg_video) {
- url_fskip(pb, size);
- break;
- }
- case NUV_VIDEO:
- if (ctx->v_id < 0) {
- av_log(s, AV_LOG_ERROR, "Video packet in file without video stream!\n");
- url_fskip(pb, size);
- break;
- }
- ret = av_new_packet(pkt, copyhdrsize + size);
- if (ret < 0)
- return ret;
- // HACK: we have no idea if it is a keyframe,
- // but if we mark none seeking will not work at all.
- pkt->flags |= PKT_FLAG_KEY;
- pkt->pos = pos;
- pkt->pts = AV_RL32(&hdr[4]);
- pkt->stream_index = ctx->v_id;
- memcpy(pkt->data, hdr, copyhdrsize);
- ret = get_buffer(pb, pkt->data + copyhdrsize, size);
+ case NUV_EXTRADATA:
+ if (!ctx->rtjpg_video) {
+ avio_skip(pb, size);
+ break;
+ }
+ case NUV_VIDEO:
+ if (ctx->v_id < 0) {
+ av_log(s, AV_LOG_ERROR, "Video packet in file without video stream!\n");
+ avio_skip(pb, size);
+ break;
+ }
+ ret = av_new_packet(pkt, copyhdrsize + size);
+ if (ret < 0)