From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 9DD7A4879F for ; Fri, 16 Feb 2024 15:52:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F0DF768D26C; Fri, 16 Feb 2024 17:52:55 +0200 (EET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9FE4068D18F for ; Fri, 16 Feb 2024 17:52:49 +0200 (EET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1db8320b1cbso884125ad.1 for ; Fri, 16 Feb 2024 07:52:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708098767; x=1708703567; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0yiL0H6LB35Jpn/WvsrJqHk5wqxSAqR0F6dFsiBwlis=; b=rTsXi8cEnvQyqlw6rp3dIeQw0KcH04w1srz0SVN5UaVG8w/XQOszozRRVOLIHQN8ay AJ/6lIOl//aWeNauzsGfHzW/o9W0n4WfbIyXrHRYnPeqKAM6borZIOmwljLJTunnJDx7 eItV0PDcr+jcV/oioXvCWJxh7I0HCI16Aq0QfT/znP1F8CfGYngPVI4isWBHJ7d+F0yx biU0qLSnk8lTemHX5mrD0YW2KbFN2LgJ+GHI/CWPJoYByMUpadyJrwSOTEtob1kv7wNf HnLT5NMjdGNxqz+px6ImlGhT+md1Av0Y+omzaTDOa8Bimuju/F911tBVh9CktuQ6CN0y t+RQ== X-Gm-Message-State: AOJu0YwDpTCvRXMWzOCOa6tk6D9c9ObIq7KNC7PwygLVE8xcFZbk6T4o ONzoQCA4o70LjOae+lsqAFN2ltBf2jNnBjDDo5bhGhZQcZdkIe/x0gcenxOVpHMttIut2n4xSgZ 9gZfDO6eYI+FNpHMdLcJ2RdVRPfWbl+7o+6RT3pwvhk7ny9mO X-Google-Smtp-Source: AGHT+IHGckMaWYRh9hmkMtsCDvsCYmASLbHQafgHRfm3szC7NU1anO54f7oTOPgs+TbeN7VZUR5ddx8nEXyyf59g0Ic= X-Received: by 2002:a17:90a:985:b0:299:3258:fdfb with SMTP id 5-20020a17090a098500b002993258fdfbmr2309042pjo.4.1708098767185; Fri, 16 Feb 2024 07:52:47 -0800 (PST) MIME-Version: 1.0 References: <20240211180917.1675603-1-marth64@proxyid.net> <170808352333.21676.5287948327752942736@lain.khirnov.net> In-Reply-To: <170808352333.21676.5287948327752942736@lain.khirnov.net> From: Marth64 Date: Fri, 16 Feb 2024 09:52:36 -0600 Message-ID: To: FFmpeg development discussions and patches , Marth64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] [PATCH v13 1/2] libavformat: add DVD-Video demuxer, powered by libdvdnav and libdvdread X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: I will take care of it, thanks On Fri, Feb 16, 2024 at 05:38 Anton Khirnov wrote: > Quoting Marth64 (2024-02-11 19:09:16) > > +static int dvdvideo_video_stream_add(AVFormatContext *s, > > + DVDVideoVTSVideoStreamEntry *entry, > > + enum AVStreamParseType > need_parsing) > > +{ > > + AVStream *st; > > + FFStream *sti; > > + > > + st = avformat_new_stream(s, NULL); > > + if (!st) > > + return AVERROR(ENOMEM); > > + > > + st->id = entry->startcode; > > + st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; > > + st->codecpar->codec_id = entry->codec_id; > > + st->codecpar->width = entry->width; > > + st->codecpar->height = entry->height; > > + st->codecpar->format = AV_PIX_FMT_YUV420P; > > + st->codecpar->color_range = AVCOL_RANGE_MPEG; > > + > > + st->codecpar->framerate = entry->framerate; > > Demuxers are not supposed to set this, it's for the codec-layer > framerate information. > > > +#if FF_API_R_FRAME_RATE > > + st->r_frame_rate = entry->framerate; > > +#endif > > + st->avg_frame_rate = entry->framerate; > > + > > + sti = ffstream(st); > > + sti->request_probe = 0; > > + sti->need_parsing = need_parsing; > > + sti->display_aspect_ratio = entry->dar; > > + sti->avctx->framerate = entry->framerate; > > This neither. > > -- > Anton Khirnov > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".