mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 00:23:27 +00:00
fix crash with http://sam.zoy.org/zzuf/lol-mplayer.m2v
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21941 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3d834fb592
commit
f8aa043601
@ -400,6 +400,29 @@
|
||||
decoder->offset += 16; \
|
||||
if (decoder->offset == decoder->width) { \
|
||||
do { /* just so we can use the break statement */ \
|
||||
@@ -1604,6 +1604,12 @@
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
+static void motion_dummy (mpeg2_decoder_t * const decoder,
|
||||
+ motion_t * const motion,
|
||||
+ mpeg2_mc_fct * const * const table)
|
||||
+{
|
||||
+}
|
||||
+
|
||||
void mpeg2_init_fbuf (mpeg2_decoder_t * decoder, uint8_t * current_fbuf[3],
|
||||
uint8_t * forward_fbuf[3], uint8_t * backward_fbuf[3])
|
||||
{
|
||||
@@ -1661,7 +1667,9 @@
|
||||
|
||||
if (decoder->mpeg1) {
|
||||
decoder->motion_parser[0] = motion_zero_420;
|
||||
+ decoder->motion_parser[MC_FIELD] = motion_dummy;
|
||||
decoder->motion_parser[MC_FRAME] = motion_mp1;
|
||||
+ decoder->motion_parser[MC_DMV] = motion_dummy;
|
||||
decoder->motion_parser[4] = motion_reuse_420;
|
||||
} else if (decoder->picture_structure == FRAME_PICTURE) {
|
||||
if (decoder->chroma_format == 0) {
|
||||
--- libmpeg2/idct.c 2006-06-16 20:12:26.000000000 +0200
|
||||
+++ libmpeg2/idct.c 2006-06-16 20:12:50.000000000 +0200
|
||||
@@ -253,7 +253,7 @@
|
||||
|
@ -1604,6 +1604,12 @@ do { \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
static void motion_dummy (mpeg2_decoder_t * const decoder,
|
||||
motion_t * const motion,
|
||||
mpeg2_mc_fct * const * const table)
|
||||
{
|
||||
}
|
||||
|
||||
void mpeg2_init_fbuf (mpeg2_decoder_t * decoder, uint8_t * current_fbuf[3],
|
||||
uint8_t * forward_fbuf[3], uint8_t * backward_fbuf[3])
|
||||
{
|
||||
@ -1661,7 +1667,9 @@ void mpeg2_init_fbuf (mpeg2_decoder_t * decoder, uint8_t * current_fbuf[3],
|
||||
|
||||
if (decoder->mpeg1) {
|
||||
decoder->motion_parser[0] = motion_zero_420;
|
||||
decoder->motion_parser[MC_FIELD] = motion_dummy;
|
||||
decoder->motion_parser[MC_FRAME] = motion_mp1;
|
||||
decoder->motion_parser[MC_DMV] = motion_dummy;
|
||||
decoder->motion_parser[4] = motion_reuse_420;
|
||||
} else if (decoder->picture_structure == FRAME_PICTURE) {
|
||||
if (decoder->chroma_format == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user