30 typedef struct yop_dec_context {
42 probe_packet->
buf[6] &&
43 probe_packet->
buf[7] &&
44 !(probe_packet->
buf[8] & 1) &&
45 !(probe_packet->
buf[10] & 1))
57 AVStream *audio_stream, *video_stream;
74 audio_dec = audio_stream->
codec;
82 video_dec = video_stream->
codec;
122 int actual_video_data_size = yop->
frame_size -
131 #if FF_API_DESTRUCT_PACKET
152 }
else if (ret < yop->palette_size) {
167 actual_video_data_size);
170 else if (ret < actual_video_data_size)
189 int64_t timestamp,
int flags)
192 int64_t frame_pos, pos_min, pos_max;
200 frame_count = (pos_max - pos_min) / yop->
frame_size;
202 timestamp =
FFMAX(0,
FFMIN(frame_count, timestamp));
204 frame_pos = timestamp * yop->
frame_size + pos_min;