|
@@ -179,6 +179,8 @@ def update_video_w_h_rate(video_ids, key_name):
|
|
|
# 更新到redis
|
|
|
info_data = {}
|
|
|
for video_id, width, height, rotate in data:
|
|
|
+ if int(width) == 0 or int(height) == 0:
|
|
|
+ continue
|
|
|
# rotate 字段值为 90或270时,width和height的值相反
|
|
|
if int(rotate) in (90, 270):
|
|
|
w_h_rate = int(height) / int(width)
|