Encode a video frame from pict into buf.
The input picture should be
stored using a specific format, namely avctx.pix_fmt.
@param avctx the codec context
@paramout buf the output buffer for the bitstream of encoded frame
@paramin buf_size the size of the output buffer in bytes
@paramin pict the input picture to encode
@return On error a negative value is returned, on success zero or the number
of bytes used from the output buffer.
@deprecated use avcodec_encode_video2() instead.
Encode a video frame from pict into buf. The input picture should be stored using a specific format, namely avctx.pix_fmt.
@param avctx the codec context @paramout buf the output buffer for the bitstream of encoded frame @paramin buf_size the size of the output buffer in bytes @paramin pict the input picture to encode @return On error a negative value is returned, on success zero or the number of bytes used from the output buffer.