Commit 259ffd79 authored by smorlat's avatar smorlat
Browse files

attempt to be compatible with old ffmpegs.



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@424 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent c44f5776
......@@ -740,6 +740,7 @@ static void linphone_gtk_init_status_icon(){
g_signal_connect(G_OBJECT(icon),"popup-menu",(GCallback)icon_popup_menu,NULL);
title=linphone_gtk_get_ui_config("title",_("Linphone - a video internet phone"));
gtk_status_icon_set_tooltip(icon,title);
gtk_status_icon_set_visible(icon,TRUE);
g_object_set_data(G_OBJECT(icon),"menu",menu);
g_object_weak_ref(G_OBJECT(icon),(GWeakNotify)gtk_widget_destroy,menu);
}
......
......@@ -45,4 +45,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include "swscale.h"
#endif
#if LIBAVCODEC_VERSION_MAJOR <= 51
/*should work as long as nobody uses avformat.h*/
typedef struct AVPacket{
uint8_t *data;
int size;
}AVPacket;
static inline int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
int *got_picture_ptr,
AVPacket *avpkt){
return avcodec_decode_video(avctx,picture, got_picture_ptr,avpkt->data,avpkt->size);
}
#endif
#endif /* FFMPEG_PRIV_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment