From patchwork Wed Aug 3 16:42:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 77 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.67 with SMTP id o64csp788403vsd; Wed, 3 Aug 2016 09:42:40 -0700 (PDT) X-Received: by 10.28.197.1 with SMTP id v1mr62046971wmf.8.1470242560219; Wed, 03 Aug 2016 09:42:40 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id nb9si3879884wjb.113.2016.08.03.09.42.38; Wed, 03 Aug 2016 09:42:40 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 866B368A1EB; Wed, 3 Aug 2016 19:42:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe04-2.mx.upcmail.net (vie01a-dmta-pe04-2.mx.upcmail.net [62.179.121.164]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 14F9868A169 for ; Wed, 3 Aug 2016 19:42:04 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe04.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1bUzFC-0001Y9-I8 for ffmpeg-devel@ffmpeg.org; Wed, 03 Aug 2016 18:42:10 +0200 Received: from [192.168.1.3] ([80.110.110.102]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id Sgi91t00M2Cc4nC01giAez; Wed, 03 Aug 2016 18:42:10 +0200 X-SourceIP: 80.110.110.102 From: Carl Eugen Hoyos To: FFmpeg development discussions and patches Date: Wed, 3 Aug 2016 18:42:09 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Message-Id: <201608031842.09274.cehoyos@ag.or.at> Subject: [FFmpeg-devel] [PATCH]lavf(webm_chunk: Print an error if no header filename was provided. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch gives users (and testers) a chance to know why webm_chunk muxing fails. Please comment, Carl Eugen From 675562a4d2215af36f512d3d2c608ec8dc16a73c Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 3 Aug 2016 18:40:03 +0200 Subject: [PATCH] lavf/webm_chunk: Print an error if no header filename was provided. --- libavformat/webm_chunk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c index 9db4fab..e75f929 100644 --- a/libavformat/webm_chunk.c +++ b/libavformat/webm_chunk.c @@ -92,6 +92,7 @@ static int get_chunk_filename(AVFormatContext *s, int is_header, char *filename) } if (is_header) { if (!wc->header_filename) { + av_log(oc, AV_LOG_ERROR, "No header filename provided\n"); return AVERROR(EINVAL); } av_strlcpy(filename, wc->header_filename, strlen(wc->header_filename) + 1);