[FFmpeg-devel] Google Summer of Code participation

Michael Niedermayer michaelni
Thu Apr 9 00:52:14 CEST 2009


On Wed, Apr 08, 2009 at 11:54:08PM +0200, Thilo Borgmann wrote:
>
>
> Michael Niedermayer schrieb:
>>> diff --git a/ffplay.c b/ffplay.c
>>> index 18422e2..d48e009 100644
>>> --- a/ffplay.c
>>> +++ b/ffplay.c
>>> @@ -135,9 +135,8 @@ typedef struct VideoState {
>>>      uint8_t *audio_buf;
>>>      unsigned int audio_buf_size; /* in bytes */
>>>      int audio_buf_index; /* in bytes */
>>> +    AVPacket avpkt;
>>>     
>>
>> i would prefer audio_pkt_temp as name
>>
>>   
> Ok.
>>> @@ -1797,6 +1797,7 @@ static int stream_component_open(VideoState *is, 
>>> int stream_index)
>>>          is->audio_diff_threshold = 2.0 * SDL_AUDIO_BUFFER_SIZE / 
>>> enc->sample_rate;
>>>           memset(&is->audio_pkt, 0, sizeof(is->audio_pkt));
>>> +        memset(&is->avpkt, 0, sizeof(is->avpkt));
>>>          packet_queue_init(&is->audioq);
>>>          SDL_PauseAudio(0);
>>>          break;
>>>     
>>
>> is this needed?
>>   
> Oh... of course not, my fault.

patch ok if it has been tested with several files

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

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- 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/20090409/98e3539f/attachment.pgp>



More information about the ffmpeg-devel mailing list