Skip to content

Commit

Permalink
android/MediaCodec: fix live error when change resolution
Browse files Browse the repository at this point in the history
Signed-off-by: Xinzheng Zhang <[email protected]>
  • Loading branch information
zhenghanchao authored and xinzhengzhang committed Oct 17, 2016
1 parent 409b075 commit 236fbda
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,7 @@ static int feed_input_buffer(JNIEnv *env, IJKFF_Pipenode *node, int64_t timeUs,
if (change_ret < 0) {
avcodec_free_context(&new_avctx);
return change_ret;
}

if (got_picture) {
} else {
if (opaque->codecpar->width != new_avctx->width &&
opaque->codecpar->height != new_avctx->height) {
ALOGW("AV_PKT_DATA_NEW_EXTRADATA: %d x %d\n", new_avctx->width, new_avctx->height);
Expand Down

0 comments on commit 236fbda

Please sign in to comment.