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)
76 audio_dec = audio_stream->
codec;
84 video_dec = video_stream->
codec;
126 int actual_video_data_size = yop->
frame_size -
135 #if FF_API_DESTRUCT_PACKET
156 }
else if (ret < yop->palette_size) {
171 actual_video_data_size);
174 else if (ret < actual_video_data_size)
193 int64_t timestamp,
int flags)
196 int64_t frame_pos, pos_min, pos_max;
204 frame_count = (pos_max - pos_min) / yop->
frame_size;
206 timestamp =
FFMAX(0,
FFMIN(frame_count, timestamp));
208 frame_pos = timestamp * yop->
frame_size + pos_min;