comparison libschroedingerdec.c @ 9355:54bc8a2727b0 libavcodec

Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist.
author rbultje
date Tue, 07 Apr 2009 15:59:50 +0000
parents 043574c5c153
children fdb318d12314
comparison
equal deleted inserted replaced
9354:174309386512 9355:54bc8a2727b0
205 } 205 }
206 } 206 }
207 207
208 static int libschroedinger_decode_frame(AVCodecContext *avccontext, 208 static int libschroedinger_decode_frame(AVCodecContext *avccontext,
209 void *data, int *data_size, 209 void *data, int *data_size,
210 const uint8_t *buf, int buf_size) 210 AVPacket *avpkt)
211 { 211 {
212 const uint8_t *buf = avpkt->data;
213 int buf_size = avpkt->size;
212 214
213 FfmpegSchroDecoderParams *p_schro_params = avccontext->priv_data; 215 FfmpegSchroDecoderParams *p_schro_params = avccontext->priv_data;
214 SchroDecoder *decoder = p_schro_params->decoder; 216 SchroDecoder *decoder = p_schro_params->decoder;
215 SchroVideoFormat *format; 217 SchroVideoFormat *format;
216 AVPicture *picture = data; 218 AVPicture *picture = data;