[MPlayer-dev-eng] [PATCH] DVDNAV Still frames supprt

Ötvös Attila oattila at chello.hu
Fri Jan 25 19:28:07 CET 2008


Ezzel a dátummal: Friday 25 January 2008 18.00.40 Benjamin Zores ezt írta:
> Ötvös Attila a écrit :
> > Ezzel a dátummal: Friday 25 January 2008 12.55.58 Benjamin Zores ezt írta:
> >> On Jan 25, 2008 11:47 AM, Reimar Döffinger
> >> <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> >
> > Hi Benjamin Zores!
> >
> >> I'll send a patch with your comments in the evening.
> >> I just wanted to come up on some points.
> >
> > I fixed to remarks of Reimar Döeffinger. Please, you look at this.
>
> I'll have to, this version segfaults on still frame :-(
>
I sorry. My mistake, fix:

@@ -1866,12 +1866,12 @@
         if (!mpctx->libmpeg2_count)
             mpctx->libmpeg2_count = 5;
 
+        *in_size = mpctx->last_in_size;
         if (mpctx->last_start) {
             *start = mpctx->last_start;
             memcpy(*start,mpctx->last_buffer,*in_size);
         } else
             *start = mpctx->last_buffer;
-        *in_size = mpctx->last_in_size;
     }
 
     return decoded_frame;

Best regard.
Attila
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvdnav_still.patch
Type: text/x-diff
Size: 21877 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080125/7e351943/attachment.patch>


More information about the MPlayer-dev-eng mailing list