Re: [FFmpeg-devel] [PATCH]lavf/rawenc: Only accept the appropriate stream type for raw muxers
On 8/10/2019 9:25 PM, Carl Eugen Hoyos wrote: > Am Mo., 1. Juli 2019 um 00:47 Uhr schrieb Carl Eugen Hoyos > : >> >> Am Mo., 1. Juli 2019 um 00:40 Uhr schrieb Carl Eugen Hoyos >> : >>> >>> Hi! >>> >>> Attached patch fixes ticket #7979 for me. >> >> Now attached. > > Ping. > > Carl Eugen Anything delaying this patch? It should have been committed by now. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-devel] [PATCH]lavf/rawenc: Only accept the appropriate stream type for raw muxers
On Sun, Aug 11, 2019 at 8:26 AM Carl Eugen Hoyos wrote: > > Am Mo., 1. Juli 2019 um 00:47 Uhr schrieb Carl Eugen Hoyos > : > > > > Am Mo., 1. Juli 2019 um 00:40 Uhr schrieb Carl Eugen Hoyos > > : > > > > > > Hi! > > > > > > Attached patch fixes ticket #7979 for me. > > > > Now attached. > > Ping. > > Carl Eugen LGTM, tested and verified ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-devel] [PATCH]lavf/rawenc: Only accept the appropriate stream type for raw muxers
Am Mo., 1. Juli 2019 um 00:47 Uhr schrieb Carl Eugen Hoyos : > > Am Mo., 1. Juli 2019 um 00:40 Uhr schrieb Carl Eugen Hoyos > : > > > > Hi! > > > > Attached patch fixes ticket #7979 for me. > > Now attached. Ping. Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-devel] [PATCH]lavf/rawenc: Only accept the appropriate stream type for raw muxers
Am Mo., 1. Juli 2019 um 00:40 Uhr schrieb Carl Eugen Hoyos : > > Hi! > > Attached patch fixes ticket #7979 for me. Now attached. > Please comment, Carl Eugen From 702506c37b239bf26335fb8f42d06511b8604bb5 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 1 Jul 2019 00:37:08 +0200 Subject: [PATCH] lavf/rawenc: Only accept the appropriate stream type for raw muxers. This does not affect the rawvideo muxer. Fixes ticket #7979. --- libavformat/rawenc.c | 12 1 file changed, 12 insertions(+) diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c index 993d232b70..32704f9bfd 100644 --- a/libavformat/rawenc.c +++ b/libavformat/rawenc.c @@ -39,6 +39,18 @@ static int force_one_stream(AVFormatContext *s) s->oformat->name); return AVERROR(EINVAL); } +if ( s->oformat->audio_codec != AV_CODEC_ID_NONE +&& s->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_AUDIO) { +av_log(s, AV_LOG_ERROR, "%s files have exactly one audio stream\n", + s->oformat->name); +return AVERROR(EINVAL); +} +if ( s->oformat->video_codec != AV_CODEC_ID_NONE +&& s->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO) { +av_log(s, AV_LOG_ERROR, "%s files have exactly one video stream\n", + s->oformat->name); +return AVERROR(EINVAL); +} return 0; } -- 2.22.0 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-devel] [PATCH]lavf/rawenc: Only accept the appropriate stream type for raw muxers
Hi! Attached patch fixes ticket #7979 for me. Please comment, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".