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 130F2411BD for ; Thu, 17 Nov 2022 07:30:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 06CC568BAF5; Thu, 17 Nov 2022 09:30:43 +0200 (EET) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5ED8B68BBCD for ; Thu, 17 Nov 2022 09:30:36 +0200 (EET) Received: from 4eb231a0d1b36cedda43a2a005befe4d ([1.152.242.66]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id 2AH7UUlX026352 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 17 Nov 2022 07:30:33 GMT Date: Thu, 17 Nov 2022 18:30:26 +1100 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches , Marton Balint References: <20221113184441.1741-1-cus@passwd.hu> <20221113184441.1741-2-cus@passwd.hu> MIME-Version: 1.0 In-Reply-To: <20221113184441.1741-2-cus@passwd.hu> Subject: Re: [FFmpeg-devel] [PATCH 2/3] avformat/electronicarts: set packet_read in one place 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: Marton Balint Content-Type: multipart/mixed; boundary="===============4022669716266415107==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============4022669716266415107== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ptcGXzf6sexB/YzT" Content-Disposition: inline --ptcGXzf6sexB/YzT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 13, 2022 at 07:44:40PM +0100, Marton Balint wrote: > Signed-off-by: Marton Balint > --- > libavformat/electronicarts.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c > index 0a0d6249e8..0532264f38 100644 > --- a/libavformat/electronicarts.c > +++ b/libavformat/electronicarts.c > @@ -726,8 +726,9 @@ get_video_packet: > ret =3D av_append_packet(pb, pkt, chunk_size); > } else > ret =3D av_get_packet(pb, pkt, chunk_size); > + packet_read =3D 1; > + > if (ret < 0) { > - packet_read =3D 1; > partial_packet =3D 0; > break; > } > @@ -737,7 +738,6 @@ get_video_packet: > else > pkt->stream_index =3D ea->video.stream_index; > pkt->flags |=3D key; > - packet_read =3D 1; > break; > =20 > default: lgtm -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --ptcGXzf6sexB/YzT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCY3XjEgAKCRBnYHnFrEDd a8aBAKCv28ibflhFLmiMKDya3/g9tHGBQACgpqHlSNhnSAVq14e7CkIdZ90UAn4= =YoCd -----END PGP SIGNATURE----- --ptcGXzf6sexB/YzT-- --===============4022669716266415107== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============4022669716266415107==--