[FFmpeg-devel] [PATCH 1/2] mxfdec: update current edit unit when seeking in mxf files without index tables

Michael Niedermayer michaelni at gmx.at
Thu Apr 11 13:39:49 CEST 2013


On Thu, Apr 11, 2013 at 10:39:54AM +0200, Tomas Härdin wrote:
> On Thu, 2013-04-11 at 01:09 +0200, Marton Balint wrote:
> > Fixes audio packet pts values in some files generated by AVID TRMG 3.01.
> > 
> > Signed-off-by: Marton Balint <cus at passwd.hu>
> > ---
> >  libavformat/mxfdec.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
> > index ac3f13c..9eeba55 100644
> > --- a/libavformat/mxfdec.c
> > +++ b/libavformat/mxfdec.c
> > @@ -2454,6 +2454,7 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
> >      if ((ret = avio_seek(s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET)) < 0)
> >          return ret;
> >      ff_update_cur_dts(s, st, sample_time);
> > +    mxf->current_edit_unit = sample_time;
> 
> Looks OK.

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130411/c267d492/attachment.asc>


More information about the ffmpeg-devel mailing list