- Timestamp:
- Dec 2, 2011, 1:54:27 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r2653 r2711 603 603 } 604 604 } elseif {[$_field element $cname.opendx] != ""} { 605 set type " opendx"605 set type "dx" 606 606 } elseif {[$_field element $cname.dx] != ""} { 607 607 set type "dx" … … 809 809 set _comp2dims($cname) "3D" 810 810 set _comp2dx($cname) [$_field get -decode no $cname.dx] 811 if 0 { 812 set data [$_field get -decode yes $cname.dx] 813 set file "/tmp/junk.dx" 814 set f [open $file "w"] 815 puts $f $data 816 close $f 817 if { [string match "<ODX>*" $data] } { 818 set data [string range $data 5 end] 819 set _comp2dx($cname) \ 820 [Rappture::encoding::encode -as zb64 $data] 821 } 822 } 811 823 set _comp2style($cname) [$_field get $cname.style] 812 824 if {[$_field element $cname.flow] != ""} { -
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; -
trunk/src/objects/RpVideo.h
r2035 r2711 46 46 } 47 47 #endif 48
Note: See TracChangeset
for help on using the changeset viewer.