Changeset 2713 for branches/blt4/src


Ignore:
Timestamp:
Dec 2, 2011, 7:10:39 PM (13 years ago)
Author:
gah
Message:
 
Location:
branches/blt4/src/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/src/objects/RpVideo.c

    r2060 r2713  
    5454
    5555#include "RpVideo.h"
     56
     57#if LIBAVUTIL_VERSION_MAJOR < 51
     58#define AVMEDIA_TYPE_VIDEO      CODEC_TYPE_VIDEO
     59#define AV_PKT_FLAG_KEY         PKT_FLAG_KEY           
     60#endif  /* LIBAVUTIL_VERSION_MAJOR */
     61
    5662
    5763/*
     
    358364    vidPtr->videoStream = -1;
    359365    for (i=0; i < vidPtr->pFormatCtx->nb_streams; i++) {
    360         if (vidPtr->pFormatCtx->streams[i]->codec->codec_type
    361                 == CODEC_TYPE_VIDEO) {
     366        if (vidPtr->pFormatCtx->streams[i]->codec->codec_type 
     367            == AVMEDIA_TYPE_VIDEO) {
    362368            vidPtr->videoStream = i;
    363369            break;
     
    14971503        }
    14981504        if (codecCtx->coded_frame->key_frame) {
    1499             pkt.flags |= PKT_FLAG_KEY;
     1505            pkt.flags |= AV_PKT_FLAG_KEY;
    15001506        }
    15011507        pkt.stream_index = vidPtr->outVideoStr->index;
  • branches/blt4/src/objects/RpVideo.h

    r2043 r2713  
    4646}
    4747#endif
     48
Note: See TracChangeset for help on using the changeset viewer.