[FFmpeg-devel] [PATCH] check read_packet before calling it

Benoit Fouet benoit.fouet
Wed Sep 26 11:10:06 CEST 2007


Michael Niedermayer wrote:
> Hi
>
> On Wed, Sep 26, 2007 at 09:18:42AM +0200, Benoit Fouet wrote:
>   
>> Hi,
>>
>> Michael Niedermayer wrote:
>>     
>>> Hi
>>>
>>> On Tue, Sep 25, 2007 at 08:51:33PM +0200, Benoit Fouet wrote:
>>>   
>>>       
>>>> Hi,
>>>>
>>>> attached is a patch to $subj
>>>>     
>>>>         
>>> can you elaboarte a little on when read_packet is null
>>>       
>> when it is not set in init_put_byte
>>
>>     
>>>  and why
>>> changing fill_buffer to not fill anything is the correct behavior
>>>
>>>   
>>>       
>> well, if no read packet function is provided, we can not fill buffer
>>     
>
> and under which circumstances is fill_buffer() called in such a case?
>
>   

please find a simple test file attached
get_byte in get_strz will need data and will call fill_buffer

-- 
Ben
Purple Labs S.A.
www.purplelabs.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 277 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070926/f325b179/attachment.c>



More information about the ffmpeg-devel mailing list