OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4f0f2d
)
lavc: remove a pointless check in decode_audio4()
author
Anton Khirnov
<anton@khirnov.net>
Fri, 29 Nov 2013 19:19:27 +0000
(20:19 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Mon, 9 Dec 2013 07:44:24 +0000
(08:44 +0100)
av_frame_unref() works fine on unallocated frames.
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
d1a1510
..
e9d6734
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-1478,7
+1478,7
@@
int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
frame->extended_buf = NULL;
frame->nb_extended_buf = 0;
}
- } else
if (frame->data[0])
+ } else
av_frame_unref(frame);
}