Ticket #4240: mythtv_NVR_double_length_fix.diff

File mythtv_NVR_double_length_fix.diff, 696 bytes (added by Shane Shrybman <gnome42@…>, 16 years ago)
  • libs/libmythtv/NuppelVideoRecorder.cpp

     
    493493    }
    494494
    495495    mpa_vidctx = avcodec_alloc_context();
     496
     497    avcodec_get_frame_defaults(&mpa_picture);
    496498 
    497499    switch (picture_format)
    498500    {
     
    30343036        mpa_picture.linesize[0] = frame->width;
    30353037        mpa_picture.linesize[1] = frame->width / 2;
    30363038        mpa_picture.linesize[2] = frame->width / 2;
    3037         mpa_picture.pts = frame->frameNumber;
    30383039        mpa_picture.type = FF_BUFFER_TYPE_SHARED;
    30393040
    30403041        if (wantkeyframe)