comparison libdiracdec.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
75 return 0 ; 75 return 0 ;
76 } 76 }
77 77
78 static int libdirac_decode_frame(AVCodecContext *avccontext, 78 static int libdirac_decode_frame(AVCodecContext *avccontext,
79 void *data, int *data_size, 79 void *data, int *data_size,
80 const uint8_t *buf, int buf_size) 80 AVPacket *avpkt)
81 { 81 {
82 const uint8_t *buf = avpkt->data;
83 int buf_size = avpkt->size;
82 84
83 FfmpegDiracDecoderParams *p_dirac_params = avccontext->priv_data; 85 FfmpegDiracDecoderParams *p_dirac_params = avccontext->priv_data;
84 AVPicture *picture = data; 86 AVPicture *picture = data;
85 AVPicture pic; 87 AVPicture pic;
86 int pict_size; 88 int pict_size;