[libdvbpsi-devel] Bugfixes for examples/decode_mpeg.c

Jean-Paul Saman jpsaman at gmail.com
Wed Jan 13 10:51:25 CET 2010


On Thu, Dec 31, 2009 at 12:04 PM, Bernhard Ehlers <b-ehlers at gmx.de> wrote:
> I'm new to the libdvbpsi and started looking at the example programs.
>
> All but one were working as expected, but  decode_mpeg gave me some
> headaches.
> I used a file with transport stream data and all I got was "Segmentation
> fault"
>
> So I had a closer look at the source and found several errors (svn diff at
> the end of this mail):
>
> - line 518-523: argument flag for long options should be set
> - line 603: filename is in variable filename, not in pa_argv[1]
> - line 609 and new code after line 616: give usage message if neither
> filename nor ipaddress is used
> - line 761: check if p_stream->pmt.handle is set before calling
> dvbpsi_DetachPMT.
>  Otherwise if no PMT was found, the programm aborts.

Patch merged (had to do it manually against current head).

Thanks for contributing.

Gtz,
Jean-Paul Saman


More information about the libdvbpsi-devel mailing list