summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-04-15 17:48:12 +0300
committerUoti Urpala <uau@mplayer2.org>2012-04-15 17:48:12 +0300
commitaadf1002f8aa3a5813fd13ad18b8907b82068811 (patch)
treea855c25f6a614b5b6d92946598ff952f18cd1128 /stream
parentb711624ef350d1e971f5fcc57eb4af9f74233d2a (diff)
downloadmpv-aadf1002f8aa3a5813fd13ad18b8907b82068811.tar.bz2
mpv-aadf1002f8aa3a5813fd13ad18b8907b82068811.tar.xz
screenshot: fix dependency on sizeof(AVFrame)
The AVFrame data structure may be extended at the end in new binary-compatible libavcodec versions. Therefore applications should not depend on the size of the structure. But screenshot.c declared an "AVFrame pic;" on stack. Change the code to allocate an AVFrame with avcodec_alloc_frame() instead. The frame is now stored in struct screenshot_ctx (rather than reallocated each time).
Diffstat (limited to 'stream')
0 files changed, 0 insertions, 0 deletions