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:
95a8a5a
)
avplay: do not call avcodec_get_frame_defaults().
author
Anton Khirnov
<anton@khirnov.net>
Mon, 9 Dec 2013 10:49:23 +0000
(11:49 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 11 Dec 2013 19:39:55 +0000
(20:39 +0100)
avcodec_decode_audio4() will reset the frame itself.
avplay.c
patch
|
blob
|
history
diff --git
a/avplay.c
b/avplay.c
index
1cec241
..
432db97
100644
(file)
--- a/
avplay.c
+++ b/
avplay.c
@@
-1846,8
+1846,7
@@
static int audio_decode_frame(VideoState *is, double *pts_ptr)
if (!is->frame) {
if (!(is->frame = av_frame_alloc()))
return AVERROR(ENOMEM);
- } else
- avcodec_get_frame_defaults(is->frame);
+ }
if (flush_complete)
break;