[FFmpeg-devel] Google Summer of Code participation
Thilo Borgmann
thilo.borgmann
Sun Apr 5 15:04:02 CEST 2009
Michael Niedermayer schrieb:
>
>> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
>> index 4113382..68c4597 100644
>> --- a/libavcodec/utils.c
>> +++ b/libavcodec/utils.c
>> @@ -524,18 +524,31 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size,
>> return ret;
>> }
>>
>> +#if LIBAVCODEC_VERSION_MAJOR < 53
>> int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
>> int *got_picture_ptr,
>> const uint8_t *buf, int buf_size)
>> {
>> + AVPacket avpkt;
>> + avpkt.data = buf;
>> + avpkt.size = buf_size;
>> +
>>
>
> This leaves many fields uninitialized
>
>
>
Would a call to av_init_packet() be enough?
TB
More information about the ffmpeg-devel
mailing list