[FFmpeg-devel] Google Summer of Code participation

Michael Niedermayer michaelni
Sun Apr 5 15:45:06 CEST 2009


On Sun, Apr 05, 2009 at 03:04:02PM +0200, Thilo Borgmann wrote:
>
>
> 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?

yes

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090405/13754000/attachment.pgp>



More information about the ffmpeg-devel mailing list