diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-12 19:54:52 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-14 12:24:55 +0300 |
commit | 6fdd4c678ac1ce0776f9645cd534209e5f1ae1e3 (patch) | |
tree | e5d05f7974c59ea346c19aaec87dd500f335e10b /libavcodec/libschroedingerdec.c | |
parent | 901f9c0a32985f48672fd68594111dc55d88a57a (diff) |
libschroedinger: Properly use AVFrame API
Rather than copying data buffers around, allocate a proper frame, and
use the standard AVFrame functions. This effectively makes the decoder
capable of direct rendering.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/libschroedingerdec.c')
-rw-r--r-- | libavcodec/libschroedingerdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c index d2594c68fe..cb7374c552 100644 --- a/libavcodec/libschroedingerdec.c +++ b/libavcodec/libschroedingerdec.c @@ -387,6 +387,6 @@ AVCodec ff_libschroedinger_decoder = { .init = libschroedinger_decode_init, .close = libschroedinger_decode_close, .decode = libschroedinger_decode_frame, - .capabilities = AV_CODEC_CAP_DELAY, + .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1, .flush = libschroedinger_flush, }; |