[gst-devel] Problem with mpeg2 playback

Benjamin Otte in7y118 at public.uni-hamburg.de
Wed Mar 17 06:10:07 CET 2004


Please make sure to file this as a bug (preferrably reproducable) if you can't 
get anyone to fix it.
Bug reports on this list get lost far too often.

Benjamin


Quoting Mathew Spencer <matthew.spencer at eu.sony.com>:

> Hi all,
> I am currently working on an MXF demuxer that uses gstreamer, but I am 
> running into a problem with this pipeline (using gstreamer version 0.8.0):
> 
>   filesrc location=file.mxf ! mxfdemux ! mpeg2dec ! xvimagesink
> 
> The pipeline segfaults in mpeg2dec.  If I run this pipeline (or 
> something like):
> 
>   filesrc location=file.mxf ! mxfdemux ! fdsink fd=1 | mpeg2dec 
> /proc/self/fd/1
> 
> all goes fine.
> 
> I have been analyzing the problem using valgrind at it seems that on my 
> system (Fedora core 1) the mpeg2dec is overrunning its buffers when 
> decoding.  Valgrinds output from the simple pipeline:
> 
>   filesrc location=file.mpeg2 ! mpeg2dec ! xvimagesink
> 
> if gives me the output:
> Invalid write of size 8
> ==22720==    at 0x4C16D40: mpeg2_idct_copy_mmxext (idct_mmx.c:613)
> ==22720==    by 0x4C068CE: mpeg2_slice (slice.c:954)
> ==22720==    by 0x4C04704: mpeg2_parse (decode.c:188)
> ==22720==    by 0x6501FE: gst_mpeg2dec_chain (gstmpeg2dec.c:478)
> ==22720==    by 0xD9F6A4: gst_pad_push (gstpad.c:3032)
> ==22720==    by 0xE700C2: get_group_schedule_function 
> (gstoptimalscheduler.c:1138)
> ==22720==    by 0xE6FC41: schedule_group (gstoptimalscheduler.c:1007)
> ==22720==    by 0xE6FCF7: gst_opt_scheduler_schedule_run_queue 
> (gstoptimalscheduler.c:1050)
> ==22720==    Address 0x3ACD524 is 0 bytes after a block of size 656640 
> alloc'd
> ==22720==    at 0xE8A68E: malloc (vg_replace_malloc.c:153)
> ==22720==    by 0xAF38C6: g_malloc (in /usr/lib/libglib-2.0.so.0.200.3)
> ==22720==    by 0xD85B9F: gst_buffer_new_and_alloc (gstbuffer.c:224)
> ==22720==    by 0x64FE04: gst_mpeg2dec_alloc_buffer (gstmpeg2dec.c:293)
> ==22720==    by 0x6503CD: gst_mpeg2dec_chain (gstmpeg2dec.c:508)
> ==22720==    by 0xD9F6A4: gst_pad_push (gstpad.c:3032)
> ==22720==    by 0xE700C2: get_group_schedule_function 
> (gstoptimalscheduler.c:1138)
> ==22720==    by 0xE6FC41: schedule_group (gstoptimalscheduler.c:1007)
> 
> informing us that the buffer being read from that was allocated by 
> 'gst_mpeg2dec_alloc_buffer' is being accessed invalidly.
> 
> I checked mpeg2dec command line tool for processing the same file, and I 
> get no such error.
> 
> I have been unable to track down the problem yet (but am still looking), 
> and was wondering if the mpeg2dec plugin maintainer could also have a 
> look at the problem?
> 
> Thanks for your time.
> 
> Mat
> 
> 
> 
*******************************************************************************
***************
> The information contained in this message or any of its attachments may be
> confidential and is intended for the exclusive use of the addressee(s). Any
> disclosure, reproduction, distribution or other dissemination or use of this
> communication is strictly prohibited without the express permission of the
> sender. The views expressed in this email are those of the individual and not
> necessarily those of Sony or Sony affiliated companies. Sony email is for
> business use only. 
> 
> This email and any response may be monitored by Sony United Kingdom Limited.
> (05)
> 
*******************************************************************************
***************
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 






More information about the gstreamer-devel mailing list