diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-04-15 17:48:12 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-04-15 17:48:12 +0300 |
commit | aadf1002f8aa3a5813fd13ad18b8907b82068811 (patch) | |
tree | a855c25f6a614b5b6d92946598ff952f18cd1128 /bstr.h | |
parent | b711624ef350d1e971f5fcc57eb4af9f74233d2a (diff) | |
download | mpv-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 'bstr.h')
0 files changed, 0 insertions, 0 deletions