diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2011-07-07 10:41:20 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2011-07-07 10:41:20 +0800 |
commit | 4df7213c061e9e733ae65646ea54d856dcceb5cc (patch) | |
tree | 1cbe7a5ab2cf3c93c13c841e47d57f85d0856eaf | |
parent | 39d31883ccc9a4b7a74f0db516579fa8c241db3f (diff) | |
download | libva-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.c | 4 |
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); } |