diff options
author | wm4 <wm4@nowhere> | 2012-12-12 00:43:50 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 17:39:32 +0100 |
commit | 881f82dd33fe8d13e731bfe04077d3abcd149fa3 (patch) | |
tree | 8d252a933f51523a73cc93a06af40b515e671bbb /video/filter | |
parent | 65a0b5fdc609dac739f6ad1681f845b78589777b (diff) | |
download | mpv-881f82dd33fe8d13e731bfe04077d3abcd149fa3.tar.bz2 mpv-881f82dd33fe8d13e731bfe04077d3abcd149fa3.tar.xz |
vd_lavc: use refcounting
Note that if the codec doesn't support DR1, the image has to be copied.
There is no other way to guarantee that the image will be valid after
decoding the next image.
The only important codec that doesn't support DR1 yet is rawvideo. It's
likely that ffmpeg/Libav will fix this at some time. For now, this
decoder uses an evil hack and puts pointers to the packet data into the
returned frame. This means the image will actually get invalid as soon
as the corresponding video packet is free'd, so copying the image is the
only reasonable thing anyway.
Diffstat (limited to 'video/filter')
0 files changed, 0 insertions, 0 deletions