diff options
author | Harinarayanan K K <harinarayanan.kk@ittiam.com> | 2015-06-26 15:20:54 +0530 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2015-07-31 18:47:56 +0000 |
commit | 0cf554f73bbac4df9499cd7a4497e09c282d9e70 (patch) | |
tree | db6f837faa04b020524165e6ed33d23583c5903d | |
parent | 4b09a8c011279fd5bb29d238ebef17810e446783 (diff) | |
download | android_external_libavc-0cf554f73bbac4df9499cd7a4497e09c282d9e70.tar.gz android_external_libavc-0cf554f73bbac4df9499cd7a4497e09c282d9e70.tar.bz2 android_external_libavc-0cf554f73bbac4df9499cd7a4497e09c282d9e70.zip |
Fixed encode of single frame
Encoding a single frame used to make encoder to go into infinite
loop. That is fixed now
Bug: 22860270
Change-Id: I51752bdc5fd6071868884c2ff6074c14d05c8564
-rw-r--r-- | encoder/ih264e_encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encoder/ih264e_encode.c b/encoder/ih264e_encode.c index d4d1090..4697d73 100644 --- a/encoder/ih264e_encode.c +++ b/encoder/ih264e_encode.c @@ -469,7 +469,7 @@ WORD32 ih264e_encode(iv_obj_t *ps_codec_obj, void *pv_api_ip, void *pv_api_op) ps_video_encode_op->s_ive_op.dump_recon = 0; - if (ps_codec->s_cfg.u4_enable_recon && (ps_codec->i4_frame_num > 1) + if (ps_codec->s_cfg.u4_enable_recon && (ps_codec->i4_frame_num > 1 || s_inp_buf.u4_is_last) && (s_inp_buf.s_raw_buf.apv_bufs[0] || s_inp_buf.u4_is_last)) { /* error status */ |