Changeset 2711 for trunk


Ignore:
Timestamp:
Dec 2, 2011, 1:54:27 PM (13 years ago)
Author:
gah
Message:
 
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/field.tcl

    r2653 r2711  
    603603            }
    604604        } elseif {[$_field element $cname.opendx] != ""} {
    605             set type "opendx"
     605            set type "dx"
    606606        } elseif {[$_field element $cname.dx] != ""} {
    607607            set type "dx"
     
    809809            set _comp2dims($cname) "3D"
    810810            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            }
    811823            set _comp2style($cname) [$_field get $cname.style]
    812824            if {[$_field element $cname.flow] != ""} {
  • trunk/src/objects/RpVideo.c

    r2052 r2711  
    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;
  • trunk/src/objects/RpVideo.h

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