Changeset 1848


Ignore:
Timestamp:
Jul 27, 2010 11:39:17 AM (14 years ago)
Author:
dkearney
Message:

changing the deprecated avcodec_decode_video to avcodec_decode_video2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/objects/RpMediaPlayer.cc

    r1847 r1848  
    200200        if(_packet.stream_index==_videoStream) {
    201201            // Decode video frame
    202             avcodec_decode_video(_pCodecCtx, _pFrame, &frameFinished,
    203                                  _packet.data, _packet.size);
     202            avcodec_decode_video2(_pCodecCtx, _pFrame, &frameFinished,
     203                                  &_packet);
    204204
    205205            // Did we get a video frame?
     
    210210                    break;
    211211                }
    212                 if ((frameIndex%100) == 0) {
     212                if ((frameIndex%1000) == 0) {
    213213                    // artificially spread out the saved frames
    214214                    sws_scale(_swsctx,
Note: See TracChangeset for help on using the changeset viewer.