Mercurial > libavcodec.hg
comparison 4xm.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 | 25b3650b4db5 |
comparison
equal
deleted
inserted
replaced
9354:174309386512 | 9355:54bc8a2727b0 |
---|---|
675 return 0; | 675 return 0; |
676 } | 676 } |
677 | 677 |
678 static int decode_frame(AVCodecContext *avctx, | 678 static int decode_frame(AVCodecContext *avctx, |
679 void *data, int *data_size, | 679 void *data, int *data_size, |
680 const uint8_t *buf, int buf_size) | 680 AVPacket *avpkt) |
681 { | 681 { |
682 const uint8_t *buf = avpkt->data; | |
683 int buf_size = avpkt->size; | |
682 FourXContext * const f = avctx->priv_data; | 684 FourXContext * const f = avctx->priv_data; |
683 AVFrame *picture = data; | 685 AVFrame *picture = data; |
684 AVFrame *p, temp; | 686 AVFrame *p, temp; |
685 int i, frame_4cc, frame_size; | 687 int i, frame_4cc, frame_size; |
686 | 688 |