diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-08-31 13:43:52 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-08-31 13:43:52 +0200 |
| commit | e7d75ce1f882975d2053cb6304d4edb4cb6cfcae (patch) | |
| tree | eddc575208719b24f4a243dd857955f6a5959faa /apps/web | |
| parent | d747fb458d2fbebd2ce007132b43cd973bd5513f (diff) | |
| download | opencut-e7d75ce1f882975d2053cb6304d4edb4cb6cfcae.tar.gz | |
fix: add fallback
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/src/lib/export.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/src/lib/export.ts b/apps/web/src/lib/export.ts index 2dd41855..8b1ab83e 100644 --- a/apps/web/src/lib/export.ts +++ b/apps/web/src/lib/export.ts @@ -14,7 +14,7 @@ import { renderTimelineFrame } from "./timeline-renderer"; import { useTimelineStore } from "@/stores/timeline-store"; import { useMediaStore } from "@/stores/media-store"; import { useProjectStore } from "@/stores/project-store"; -import { DEFAULT_FPS } from "@/stores/project-store"; +import { DEFAULT_FPS, DEFAULT_CANVAS_SIZE } from "@/stores/project-store"; import { ExportOptions, ExportResult } from "@/types/export"; import { TimelineTrack } from "@/types/timeline"; import { MediaFile } from "@/types/media"; @@ -171,7 +171,7 @@ export async function exportProject( } const exportFps = fps || activeProject.fps || DEFAULT_FPS; - const canvasSize = activeProject.canvasSize; + const canvasSize = activeProject.canvasSize || DEFAULT_CANVAS_SIZE; const outputFormat = format === "webm" ? new WebMOutputFormat() : new Mp4OutputFormat(); |
