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 -
155 }
else if (ret < yop->palette_size) {
170 actual_video_data_size);
173 else if (ret < actual_video_data_size)
192 int64_t timestamp,
int flags)
195 int64_t frame_pos, pos_min, pos_max;
203 frame_count = (pos_max - pos_min) / yop->
frame_size;
205 timestamp =
FFMAX(0,
FFMIN(frame_count, timestamp));
207 frame_pos = timestamp * yop->
frame_size + pos_min;