From 620cf44c46cba13df170b3c81e698d36217324ac Mon Sep 17 00:00:00 2001 From: Karl Blomster Date: Thu, 14 Aug 2008 16:06:04 +0000 Subject: [PATCH] sourced some error messages in the lavc video provider Originally committed to SVN as r2302. --- aegisub/video_provider_lavc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/video_provider_lavc.cpp b/aegisub/video_provider_lavc.cpp index 124a749ee..567cbed56 100644 --- a/aegisub/video_provider_lavc.cpp +++ b/aegisub/video_provider_lavc.cpp @@ -114,18 +114,18 @@ void LAVCVideoProvider::LoadVideo(Aegisub::String filename, double fps) { break; } } - if (vidStream == -1) throw _T("Could not find a video stream"); + if (vidStream == -1) throw _T("ffmpeg video provider: Could not find a video stream"); // Find codec codec = avcodec_find_decoder(codecContext->codec_id); - if (!codec) throw _T("Could not find suitable video decoder"); + if (!codec) throw _T("ffmpeg video provider: Could not find suitable video decoder"); // Enable truncation //if (codec->capabilities & CODEC_CAP_TRUNCATED) codecContext->flags |= CODEC_FLAG_TRUNCATED; // Open codec result = avcodec_open(codecContext,codec); - if (result < 0) throw _T("Failed to open video decoder"); + if (result < 0) throw _T("ffmpeg video provider: Failed to open video decoder"); // Parse file for keyframes and other useful stuff LAVCKeyFrames LAVCFrameData(filename);