OSDN Git Service
(root)
/
android-x86
/
external-stagefright-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6de1c90
)
stagefright-plugins: Update pixfmt
author
Keith Mok
<kmok@cyngn.com>
Wed, 20 Jan 2016 00:22:10 +0000
(16:22 -0800)
committer
Keith Mok
<kmok@cyngn.com>
Wed, 20 Jan 2016 00:27:13 +0000
(16:27 -0800)
PIX_FMT_YUV420P is going to be deprecated.
Use AV_PIX_FMT_YUV420P instead.
Change-Id: Ia6d119367bc2763da8206b1e6c61f3183830fe2b
omx/SoftFFmpegVideo.cpp
patch
|
blob
|
history
diff --git
a/omx/SoftFFmpegVideo.cpp
b/omx/SoftFFmpegVideo.cpp
index
1cba05e
..
98618fe
100644
(file)
--- a/
omx/SoftFFmpegVideo.cpp
+++ b/
omx/SoftFFmpegVideo.cpp
@@
-528,7
+528,7
@@
int32_t SoftFFmpegVideo::drainOneOutputBuffer() {
int sws_flags = SWS_BICUBIC;
mImgConvertCtx = sws_getCachedContext(mImgConvertCtx,
mFrame->width, mFrame->height, (AVPixelFormat)mFrame->format, width, height,
- PIX_FMT_YUV420P, sws_flags, NULL, NULL, NULL);
+
AV_
PIX_FMT_YUV420P, sws_flags, NULL, NULL, NULL);
if (mImgConvertCtx == NULL) {
ALOGE("Cannot initialize the conversion context");
return ERR_SWS_FAILED;