diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-04-18 12:52:48 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-05-08 06:42:25 +0800 |
commit | f5e33514e7a879b09fabfeffd78402590225bf47 (patch) | |
tree | 310084846d71bc6a057a448f862ba19dfd7aa860 /tools/python/convert_header.py | |
parent | d8e98d93485754b746a7d1103f33a30de08022b7 (diff) | |
download | ffmpeg-f5e33514e7a879b09fabfeffd78402590225bf47.tar.gz |
avcodec/libx264: return immediately if encode_nals return 0
x264_encoder_encode can return 0 with nnal 0. As a result, encode_nals will
return 0. In this condition, it's better to return 0 immediately to avoid
the following unneeded pict_type and flags setting.
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'tools/python/convert_header.py')
0 files changed, 0 insertions, 0 deletions