Changeset 2711 for trunk/src/objects/RpVideo.c
- Timestamp:
- Dec 2, 2011, 1:54:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/objects/RpVideo.c
r2052 r2711 54 54 55 55 #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 56 62 57 63 /* … … 358 364 vidPtr->videoStream = -1; 359 365 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) { 362 368 vidPtr->videoStream = i; 363 369 break; … … 1497 1503 } 1498 1504 if (codecCtx->coded_frame->key_frame) { 1499 pkt.flags |= PKT_FLAG_KEY;1505 pkt.flags |= AV_PKT_FLAG_KEY; 1500 1506 } 1501 1507 pkt.stream_index = vidPtr->outVideoStr->index;
Note: See TracChangeset
for help on using the changeset viewer.