Ticket #3580: patch

File patch, 1.2 KB (added by Alex Christensen, 12 years ago)

patch

  • ffplay.c

     ffplay.c | 7 +++++--
     1 file changed, 5 insertions(+), 2 deletions(-)
    
    diff --git a/ffplay.c b/ffplay.c
    index 86b9126..433a6e2 100644
    a b static int read_thread(void *arg)  
    28242824    if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {
    28252825        AVStream *st = ic->streams[st_index[AVMEDIA_TYPE_VIDEO]];
    28262826        AVCodecContext *avctx = st->codec;
    2827         VideoPicture vp = {.width = avctx->width, .height = avctx->height, .sar = av_guess_sample_aspect_ratio(ic, st, NULL)};
     2827        VideoPicture vp;
     2828        vp.width = avctx->width;
     2829        vp.height = avctx->height;
     2830        vp.sar = av_guess_sample_aspect_ratio(ic, st, NULL);
    28282831        if (vp.width)
    28292832            set_default_window_size(&vp);
    28302833    }
    int main(int argc, char **argv)  
    36323635        flags &= ~SDL_INIT_AUDIO;
    36333636    if (display_disable)
    36343637        SDL_putenv(dummy_videodriver); /* For the event queue, we always need a video driver. */
    3635 #if !defined(__MINGW32__) && !defined(__APPLE__)
     3638#if !defined(__MINGW32__) && !defined(__APPLE__) && !defined(_MSC_VER)
    36363639    flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */
    36373640#endif
    36383641    if (SDL_Init (flags)) {