[vlc-devel] [RFC 1/2] avcodec: encoder: Always provide frame dimension and pixel format

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Apr 4 13:30:44 CEST 2016


On 03/29/2016 01:34 PM, Vittorio Giovara wrote:
> On Mon, Mar 28, 2016 at 2:28 PM, Hugo Beauzée-Luyssen <hugo at beauzee.fr> wrote:
>> av_frame_unref will clear most of the frame fields, including dimension
>> & pixel format.
>
> Where does that happen?
>
>> This causes some encoders (at least the raw encoder) to
>> reject the frame.
>
> Some encoders or the raw encoder exclusively? If the latter, a bug in
> the lavc encoder seems more likely.
>
Hi,

The other encoders I looked at don't use the AVFrame fields so far, so 
maybe it makes more sense to fix the rawenc module so it relies the 
context fields.

Regards,


More information about the vlc-devel mailing list