[FFmpeg-devel] [PATCH] Wrong duration in TS container (Ticket #1836)
Heesuk Jung
heesuk.jung at lge.com
Wed Oct 24 07:31:31 CEST 2012
Hi,
I followed your comment and updated new patch.
Thanks for comment !
-----Original Message-----
From: ffmpeg-devel-bounces at ffmpeg.org
[mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos
Sent: Wednesday, October 24, 2012 5:32 AM
To: ffmpeg-devel at ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] Wrong duration in TS container (Ticket
#1836)
Heesuk Jung <heesuk.jung <at> lge.com> writes:
> + if (bit_rate > 0) {
> + if (duration >
> (filesize*8/bit_rate*limit_filesize_multiple*1000000)) {
> + return 0;
> + }
> + return 1;
> + } else {
> + return 0;
> + }
Ignore if you disagree, but since you have to resend:
Isn't the following more readable?
if (error_condition)
return 0;
if (condition)
return 1;
return 0;
Or even
if (error_condition)
return 0;
return (condition);
And I wonder if you have to add two functions that are both only used once.
Thank you for working on this issue, Carl Eugen
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list