[FFmpeg-devel] [PATCH 3/4] doc/examples/transcoding.c: Fixed a compile warning

Nicolas George george at nsup.org
Sat May 2 13:18:25 EEST 2020


Zhao, Gang (12020-05-02):
> Fixed deprecated declarations compile warning by replacing deprecated
> api avcodec_encode_{audio,video}2() and
> avcodec_decode_{audio4,video2}() with
> avcodec_send_frame()/avcodec_receive_packet() and
> avcodec_send_packet()/avcodec_receive_frame(). Also made some clean up
> according to this change.
> 
> Signed-off-by: Zhao, Gang <gang.zhao.42 at gmail.com>
> ---
> Tested that the new code generated the same file as before by running
> ./doc/examples/transcoding_g my_samples/transcoding.mp4 my_samples/transcoding.avi
> 
>  doc/examples/transcoding.c | 106 +++++++++++++++++++------------------
>  1 file changed, 55 insertions(+), 51 deletions(-)

Again, >100 lines changed, that's not fixing a compilation warning.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200502/c0e85250/attachment.sig>


More information about the ffmpeg-devel mailing list