avviddec: Also proxy the data/size pointers for our wrapper AVBufferRef

This commit is contained in:
Sebastian Dröge 2015-06-26 20:20:14 +02:00
parent 8da0a61dc0
commit ad7613be0d

View file

@ -769,7 +769,8 @@ fallback:
if (picture->buf[c]) { if (picture->buf[c]) {
dframe->avbuffer = picture->buf[c]; dframe->avbuffer = picture->buf[c];
picture->buf[c] = picture->buf[c] =
av_buffer_create (NULL, 0, dummy_free_buffer, dframe, 0); av_buffer_create (picture->buf[c]->data, picture->buf[c]->size,
dummy_free_buffer, dframe, 0);
} else { } else {
picture->buf[c] = picture->buf[c] =
av_buffer_create (NULL, 0, dummy_free_buffer, dframe, 0); av_buffer_create (NULL, 0, dummy_free_buffer, dframe, 0);