summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2011-07-07 10:41:20 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2011-07-07 10:41:20 +0800
commit4df7213c061e9e733ae65646ea54d856dcceb5cc (patch)
tree1cbe7a5ab2cf3c93c13c841e47d57f85d0856eaf
parent39d31883ccc9a4b7a74f0db516579fa8c241db3f (diff)
downloadlibva-4df7213c061e9e733ae65646ea54d856dcceb5cc.tar.gz
test/encode/avcenc: re-try until success
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--test/encode/avcenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/encode/avcenc.c b/test/encode/avcenc.c
index 8a3b2e3..6cced46 100644
--- a/test/encode/avcenc.c
+++ b/test/encode/avcenc.c
@@ -999,7 +999,7 @@ encode_picture(FILE *yuv_fp, FILE *avc_fp,
int next_display_num)
{
VAStatus va_status;
- int count = 10, ret = 0, codedbuf_size;
+ int ret = 0, codedbuf_size;
begin_picture(yuv_fp, frame_num, display_num, slice_type, is_idr);
@@ -1048,7 +1048,7 @@ encode_picture(FILE *yuv_fp, FILE *avc_fp,
avcenc_render_picture();
ret = store_coded_buffer(avc_fp, slice_type);
- } while (ret && --count);
+ } while (ret);
end_picture(slice_type, next_is_bpic);
}