]> git.sesse.net Git - ffmpeg/commit
mpegvideo: operate with pointers to AVFrames instead of whole structs
authorwm4 <nfxjfg@googlemail.com>
Mon, 31 Mar 2014 17:46:29 +0000 (17:46 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 9 Apr 2014 00:12:19 +0000 (02:12 +0200)
commitf6774f905fb3cfdc319523ac640be30b14c1bc55
tree6f0db53a2febce58c562d383e1f3f61c9c256275
parent60fd7d36c47d62d4c603bf16c213b1a924f5cfcf
mpegvideo: operate with pointers to AVFrames instead of whole structs

The most interesting parts are initialization in ff_MPV_common_init() and
uninitialization in ff_MPV_common_end().

ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL
checks for Picture.f, because these functions can be called on
uninitialized or partially initialized Pictures.

NULL pointer checks are added to ff_thread_release_buffer() stub function.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
34 files changed:
libavcodec/dxva2_mpeg2.c
libavcodec/dxva2_vc1.c
libavcodec/h261dec.c
libavcodec/h263dec.c
libavcodec/intrax8.c
libavcodec/motion_est.c
libavcodec/mpeg12dec.c
libavcodec/mpeg12enc.c
libavcodec/mpeg4videoenc.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c
libavcodec/mpegvideo_motion.c
libavcodec/mpegvideo_xvmc.c
libavcodec/msmpeg4.c
libavcodec/mss2.c
libavcodec/pthread_frame.c
libavcodec/ratecontrol.c
libavcodec/rv10.c
libavcodec/rv30.c
libavcodec/rv34.c
libavcodec/rv40.c
libavcodec/svq1enc.c
libavcodec/utils.c
libavcodec/vaapi.c
libavcodec/vaapi_mpeg2.c
libavcodec/vaapi_mpeg4.c
libavcodec/vaapi_vc1.c
libavcodec/vc1.c
libavcodec/vc1dec.c
libavcodec/vdpau.c
libavcodec/vdpau_mpeg12.c
libavcodec/vdpau_mpeg4.c
libavcodec/vdpau_vc1.c