30 typedef struct yop_dec_context {
42 probe_packet->
buf[2]<10 &&
43 probe_packet->
buf[3]<10 &&
44 probe_packet->
buf[6] &&
45 probe_packet->
buf[7] &&
46 !(probe_packet->
buf[8] & 1) &&
47 !(probe_packet->
buf[10] & 1) &&
49 AV_RL16(probe_packet->
buf + 12 + 6) < probe_packet->
buf[12] * 3 + 4 + probe_packet->
buf[7] * 2048
68 if (!audio_stream || !video_stream)
81 audio_dec = audio_stream->
codec;
89 video_dec = video_stream->
codec;
131 int actual_video_data_size = yop->
frame_size -
154 }
else if (ret < yop->palette_size) {
169 actual_video_data_size);
172 else if (ret < actual_video_data_size)
191 int64_t timestamp,
int flags)
194 int64_t frame_pos, pos_min, pos_max;
202 frame_count = (pos_max - pos_min) / yop->
frame_size;
204 timestamp =
FFMAX(0,
FFMIN(frame_count, timestamp));
206 frame_pos = timestamp * yop->
frame_size + pos_min;