Skip to content

Commit

Permalink
get_packet_sizes: Add additional warning for fallback props
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Apr 29, 2024
1 parent 5261280 commit 0b799b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lvsfunc/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ def _set_scene_stats(n: int, clip: vs.VideoNode, stats: list[dict[str, int]]) ->
try:
return clip.std.SetFrameProps(**stats[n])
except Exception:
warnings.warn(f"{func}: \"Could not find stats for a section... (Frame: {n})\"")

return clip.std.SetFrameProps(
pkt_scene_avg_size=-1,
pkt_scene_max_size=-1,
Expand Down

0 comments on commit 0b799b0

Please sign in to comment.