Revision d5551265
libavcodec/utils.c | ||
---|---|---|
710 | 710 |
return pts; |
711 | 711 |
} |
712 | 712 |
|
713 |
|
|
714 |
#if FF_API_VIDEO_OLD |
|
715 |
int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, |
|
716 |
int *got_picture_ptr, |
|
717 |
const uint8_t *buf, int buf_size) |
|
718 |
{ |
|
719 |
AVPacket avpkt; |
|
720 |
av_init_packet(&avpkt); |
|
721 |
avpkt.data = buf; |
|
722 |
avpkt.size = buf_size; |
|
723 |
// HACK for CorePNG to decode as normal PNG by default |
|
724 |
avpkt.flags = AV_PKT_FLAG_KEY; |
|
725 |
|
|
726 |
return avcodec_decode_video2(avctx, picture, got_picture_ptr, &avpkt); |
|
727 |
} |
|
728 |
#endif |
|
729 |
|
|
730 | 713 |
int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, |
731 | 714 |
int *got_picture_ptr, |
732 | 715 |
AVPacket *avpkt) |
Also available in: Unified diff