diff mpegvideo.c @ 2025:591233f22963 libavcodec

rtp callback context patch by ("Chris Flerackers" <cflerackers at androme dot be>)
author michael
date Tue, 18 May 2004 17:23:49 +0000
parents f65d87bfdd5a
children 87620c5e2b03
line wrap: on
line diff
--- a/mpegvideo.c	Tue May 18 17:09:46 2004 +0000
+++ b/mpegvideo.c	Tue May 18 17:23:49 2004 +0000
@@ -4102,7 +4102,7 @@
                     }
         
                     if (s->avctx->rtp_callback)
-                        s->avctx->rtp_callback(s->ptr_lastgob, current_packet_size, 0);
+                        s->avctx->rtp_callback(s->avctx, s->ptr_lastgob, current_packet_size, 0);
                     
                     switch(s->codec_id){
                     case CODEC_ID_MPEG4:
@@ -4543,7 +4543,7 @@
         pdif = pbBufPtr(&s->pb) - s->ptr_lastgob;
         /* Call the RTP callback to send the last GOB */
         emms_c();
-        s->avctx->rtp_callback(s->ptr_lastgob, pdif, 0);
+        s->avctx->rtp_callback(s->avctx, s->ptr_lastgob, pdif, 0);
     }
 
     return 0;