Changeset 421:85f523efd7f7 in mediastreamer2


Ignore:
Timestamp:
Apr 20, 2009 10:56:52 PM (4 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

attempt to be compatible with old ffmpegs.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@424 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

Location:
linphone
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • linphone/gtk-glade/main.c

    r413 r421  
    741741        title=linphone_gtk_get_ui_config("title",_("Linphone - a video internet phone")); 
    742742        gtk_status_icon_set_tooltip(icon,title); 
     743        gtk_status_icon_set_visible(icon,TRUE); 
    743744        g_object_set_data(G_OBJECT(icon),"menu",menu); 
    744745        g_object_weak_ref(G_OBJECT(icon),(GWeakNotify)gtk_widget_destroy,menu); 
  • linphone/mediastreamer2/src/ffmpeg-priv.h

    r0 r421  
    4646#endif 
    4747 
     48 
     49#if LIBAVCODEC_VERSION_MAJOR <= 51 
     50/*should work as long as nobody uses avformat.h*/ 
     51typedef struct AVPacket{ 
     52        uint8_t *data; 
     53        int size; 
     54}AVPacket; 
     55 
     56static inline int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, 
     57                         int *got_picture_ptr, 
     58                         AVPacket *avpkt){ 
     59        return avcodec_decode_video(avctx,picture, got_picture_ptr,avpkt->data,avpkt->size); 
     60} 
     61#endif 
     62 
    4863#endif /* FFMPEG_PRIV_H */ 
Note: See TracChangeset for help on using the changeset viewer.