You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec: Set frame.width/height on all exit pathes of ff_get_buffer()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -722,7 +722,7 @@ static int get_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flags)
|
||||
* avcodec_default_get_buffer
|
||||
*/
|
||||
if (frame->buf[0])
|
||||
return 0;
|
||||
goto end;
|
||||
|
||||
priv = av_mallocz(sizeof(*priv));
|
||||
if (!priv) {
|
||||
@@ -798,6 +798,7 @@ do { \
|
||||
|
||||
av_buffer_unref(&dummy_buf);
|
||||
|
||||
end:
|
||||
frame->width = avctx->width;
|
||||
frame->height = avctx->height;
|
||||
|
||||
|
Reference in New Issue
Block a user