Loading media/libstagefright/codecs/m4v_h263/dec/src/mb_motion_comp.cpp +17 −1 Original line number Diff line number Diff line Loading @@ -15,6 +15,10 @@ * and limitations under the License. * ------------------------------------------------------------------- */ #define LOG_TAG "m4v_h263" #include <log/log.h> /* ------------------------------------------------------------------------------ INPUT AND OUTPUT DEFINITIONS Loading Loading @@ -236,6 +240,11 @@ void MBMotionComp( /* Pointer to previous luminance frame */ c_prev = prev->yChan; if (!c_prev) { ALOGE("b/35269635"); android_errorWriteLog(0x534e4554, "35269635"); return; } pred_block = video->mblock->pred_block; Loading Loading @@ -574,7 +583,14 @@ void SkippedMBMotionComp( /* zero motion compensation for previous frame */ /*mby*width + mbx;*/ c_prev = prev->yChan + offset; c_prev = prev->yChan; if (!c_prev) { ALOGE("b/35269635"); android_errorWriteLog(0x534e4554, "35269635"); return; } c_prev += offset; /*by*width_uv + bx;*/ cu_prev = prev->uChan + (offset >> 2) + (xpos >> 2); /*by*width_uv + bx;*/ Loading media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ * and limitations under the License. * ------------------------------------------------------------------- */ #define LOG_TAG "pvdec_api" #include <log/log.h> #include "mp4dec_lib.h" #include "vlc_decode.h" #include "bitstream.h" Loading Loading @@ -1330,6 +1332,11 @@ Bool PVDecodeVopBody(VideoDecControls *decCtrl, int32 buffer_size[]) } } if (!video->prevVop->yChan) { ALOGE("b/35269635"); android_errorWriteLog(0x534e4554, "35269635"); return PV_FALSE; } oscl_memcpy(currVop->yChan, video->prevVop->yChan, (decCtrl->size*3) / 2); video->prevVop = prevVop; Loading Loading
media/libstagefright/codecs/m4v_h263/dec/src/mb_motion_comp.cpp +17 −1 Original line number Diff line number Diff line Loading @@ -15,6 +15,10 @@ * and limitations under the License. * ------------------------------------------------------------------- */ #define LOG_TAG "m4v_h263" #include <log/log.h> /* ------------------------------------------------------------------------------ INPUT AND OUTPUT DEFINITIONS Loading Loading @@ -236,6 +240,11 @@ void MBMotionComp( /* Pointer to previous luminance frame */ c_prev = prev->yChan; if (!c_prev) { ALOGE("b/35269635"); android_errorWriteLog(0x534e4554, "35269635"); return; } pred_block = video->mblock->pred_block; Loading Loading @@ -574,7 +583,14 @@ void SkippedMBMotionComp( /* zero motion compensation for previous frame */ /*mby*width + mbx;*/ c_prev = prev->yChan + offset; c_prev = prev->yChan; if (!c_prev) { ALOGE("b/35269635"); android_errorWriteLog(0x534e4554, "35269635"); return; } c_prev += offset; /*by*width_uv + bx;*/ cu_prev = prev->uChan + (offset >> 2) + (xpos >> 2); /*by*width_uv + bx;*/ Loading
media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ * and limitations under the License. * ------------------------------------------------------------------- */ #define LOG_TAG "pvdec_api" #include <log/log.h> #include "mp4dec_lib.h" #include "vlc_decode.h" #include "bitstream.h" Loading Loading @@ -1330,6 +1332,11 @@ Bool PVDecodeVopBody(VideoDecControls *decCtrl, int32 buffer_size[]) } } if (!video->prevVop->yChan) { ALOGE("b/35269635"); android_errorWriteLog(0x534e4554, "35269635"); return PV_FALSE; } oscl_memcpy(currVop->yChan, video->prevVop->yChan, (decCtrl->size*3) / 2); video->prevVop = prevVop; Loading