Skip to content

Commit b930b40

Browse files
authored
Fix merge error with ffmpeg_jni.cc
Fix merge error with ffmpeg_jni.cc where cherry-pick process included code from nonselected commit.
1 parent 0ae7a6b commit b930b40

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

libraries/decoder_ffmpeg/src/main/jni/ffmpeg_jni.cc

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -164,24 +164,11 @@ AUDIO_DECODER_FUNC(jint, ffmpegDecode, jlong context, jobject inputData,
164164
packet->data = inputBuffer;
165165
packet->size = inputSize;
166166
const int ret =
167-
decodePacket((AVCodecContext *)context, packet, outputBuffer, outputSize,
168-
GrowOutputBufferCallback{env, thiz, decoderOutputBuffer});
167+
decodePacket((AVCodecContext *)context, packet, outputBuffer, outputSize);
169168
av_packet_free(&packet);
170169
return ret;
171170
}
172171

173-
uint8_t *GrowOutputBufferCallback::operator()(int requiredSize) const {
174-
jobject newOutputData = env->CallObjectMethod(
175-
thiz, growOutputBufferMethod, decoderOutputBuffer, requiredSize);
176-
if (env->ExceptionCheck()) {
177-
LOGE("growOutputBuffer() failed");
178-
env->ExceptionDescribe();
179-
return nullptr;
180-
}
181-
return static_cast<uint8_t *>(env->GetDirectBufferAddress(newOutputData));
182-
>>>>>>> 45b51d8c97 (Merge pull request #707 from equeim:ffmpeg-6.0)
183-
}
184-
185172
AUDIO_DECODER_FUNC(jint, ffmpegGetChannelCount, jlong context) {
186173
if (!context) {
187174
LOGE("Context must be non-NULL.");

0 commit comments

Comments
 (0)