Changeset 2060 for branches/blt4/src
- Timestamp:
- Jan 24, 2011, 8:19:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/src/objects/RpVideo.c
r2044 r2060 705 705 global_video_pkt_pts = packet.pts; 706 706 707 #ifdef FFMPEG_AVCODEC_H 708 // old avcodec decode video function 707 709 avcodec_decode_video(vcodecCtx, vidPtr->pFrameYUV, 708 710 &frameFinished, packet.data, packet.size); 709 710 // avcodec_decode_video2(vcodecCtx, vidPtr->pFrameYUV, 711 // &frameFinished, &packet); 711 #else 712 // new avcodec decode video function 713 avcodec_decode_video2(vcodecCtx, vidPtr->pFrameYUV, 714 &frameFinished, &packet); 715 #endif 712 716 713 717 if (packet.dts == AV_NOPTS_VALUE … … 1238 1242 width = (*num)*width; 1239 1243 height = (*den)*height; 1244 #ifdef FFMPEG_COMMON_H 1245 // old gcd function 1246 gcd = ff_gcd(FFABS(width), FFABS(height)); 1247 #else 1248 // new gcd function 1240 1249 gcd = av_gcd(FFABS(width), FFABS(height)); 1250 #endif 1251 1241 1252 1242 1253 *num = width/gcd;
Note: See TracChangeset
for help on using the changeset viewer.