Mercurial > mplayer.hg
comparison libmpdemux/demux_viv.c @ 2805:478202620831
disabled vivo2 scaling (decodes some vivo2 files)
author | alex |
---|---|
date | Sun, 11 Nov 2001 00:31:34 +0000 |
parents | ad82a618b371 |
children | b8e0d8204ff2 |
comparison
equal
deleted
inserted
replaced
2804:3b0775b6fc7a | 2805:478202620831 |
---|---|
185 //stream_skip(demuxer->stream,len); | 185 //stream_skip(demuxer->stream,len); |
186 stream_read(demuxer->stream,buf,len); | 186 stream_read(demuxer->stream,buf,len); |
187 buf[len]=0; | 187 buf[len]=0; |
188 // printf("VIVO header: '%s'\n",buf); | 188 // printf("VIVO header: '%s'\n",buf); |
189 | 189 |
190 #if 1 | 190 #if 0 |
191 vivo_parse_text_header(demuxer, len); | 191 vivo_parse_text_header(demuxer, len); |
192 if (priv->supported == 0) | 192 if (priv->supported == 0) |
193 return 0; | 193 return 0; |
194 #else | 194 #else |
195 // parse header: | 195 // parse header: |
470 if (priv->fps) | 470 if (priv->fps) |
471 sh->fps=priv->fps; | 471 sh->fps=priv->fps; |
472 else | 472 else |
473 sh->fps=15.0f; | 473 sh->fps=15.0f; |
474 sh->frametime=1.0f/sh->fps; | 474 sh->frametime=1.0f/sh->fps; |
475 | |
476 #warning "FIXME! we can't scale" | |
477 priv->disp_width = priv->width; | |
478 priv->disp_height = priv->height; | |
479 | |
475 if (priv->disp_width) | 480 if (priv->disp_width) |
476 sh->disp_w = priv->disp_width; | 481 sh->disp_w = priv->disp_width; |
477 else | 482 else |
478 sh->disp_w = width; | 483 sh->disp_w = width; |
479 if (priv->disp_height) | 484 if (priv->disp_height) |