Fix crash when transcoding from mpeg2
authorAurélien Nephtali <aurelien@sitadelle.com>
Tue, 17 Feb 2009 14:47:07 +0000 (15:47 +0100)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 17 Feb 2009 19:29:17 +0000 (21:29 +0200)
commit17948de947bf2f2b17e5d2bff3183d4ca1fbad91
treecbdde86ed59d3ed3d1df02a3ba4c5947b65cac3a
parentdf89b213f3a14ba2e853f94800d1c5a153040d35
Fix crash when transcoding from mpeg2

The attached patch fixes transcoding from mpeg2 with last VLC from git.

jupiter@~/vlc> ./vlc file.ts --sout
'#transcode{vcodec=mp4v}:std{access=file,mux=ts,dst=/dev/null}' -I
dummy
[...]
[0x212d9c0] libmpeg2 decoder debug: 720x576 (display 720,576), aspect
768000, sar 64:45, 25.000 fps
[0x212d9c0] main decoder warning: can't get output picture
[0x212d9c0] libmpeg2 decoder warning: invalid picture encountered
[0x212d9c0] main decoder warning: can't get output picture
zsh: segmentation fault  ./vlc file.ts --sout  -I dummy

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
modules/stream_out/transcode.c