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 E3D0B4967E for ; Fri, 16 Feb 2024 11:38:55 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 339EA68D274; Fri, 16 Feb 2024 13:38:52 +0200 (EET) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C8DD868D26C for ; Fri, 16 Feb 2024 13:38:45 +0200 (EET) Authentication-Results: mail0.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=fYai3wn3; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 85827240DA9; Fri, 16 Feb 2024 12:38:45 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id f0V8ncUkTDyG; Fri, 16 Feb 2024 12:38:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1708083523; bh=F8XV6DjMs2kSiAi33aj53gL3N+LsQyKRr6vBhrfl6qM=; h=Subject:From:To:Cc:In-Reply-To:References:Date:From; b=fYai3wn3A/Fpb+vkEccp89Yf9VVpOKQj8d6WH/7Jyw3+3tVlAxN+GdR9A04gu3wPr ObQZnUVub51m6zruzg9Skl/jAzgcIFH8Ueb4dw7OK6+pOxzOZ6CnXoucRojQqJr3wd S4+mafqYx3QgLChdJ2lZITEwi0jYbswtdEu38LRcYvUL3v7SJcHYM+pWSksuybGerM Wd/7N8DCS7NKtDm7CLL1y5KLmBrRWawkD8de4vOwEPAv7O1rQuHRxxXI4urMwUviK9 L7z1j4gwgOtw6Fyu7P2x8YOhLnjiVs1EsPzMzYLh5R6C7EmC+jRmg3FpXXv4jnjnMm 0cYJ/Ax1QChlg== Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 6D42C240177; Fri, 16 Feb 2024 12:38:43 +0100 (CET) Received: by lain.khirnov.net (Postfix, from userid 1000) id 5664F1601B9; Fri, 16 Feb 2024 12:38:43 +0100 (CET) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <20240211180917.1675603-1-marth64@proxyid.net> References: <20240211180917.1675603-1-marth64@proxyid.net> Mail-Followup-To: FFmpeg development discussions and patches , Marth64 Date: Fri, 16 Feb 2024 12:38:43 +0100 Message-ID: <170808352333.21676.5287948327752942736@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 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 Cc: Marth64 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: 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".