[FFmpeg-devel] compile failure with -DDEBUG of HEAD
Whilst compiling with -DDEBUG I get the following... libavformat/rtpdec_h264.c: In function 'h264_handle_packet_stap_a': libavformat/rtpdec_h264.c:208: error: 'data' undeclared (first use in this function) libavformat/rtpdec_h264.c:208: error: (Each undeclared identifier is reported only once libavformat/rtpdec_h264.c:208: error: for each function it appears in.) libavformat/rtpdec_h264.c: In function 'h264_handle_packet_fu_a': libavformat/rtpdec_h264.c:259: error: 'data' undeclared (first use in this function) Looks like passing in the needed context to from the calling functions would work, Kevin ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] compile failure with -DDEBUG of HEAD
On Mon, Feb 16, 2015 at 05:05:28PM +, Kevin Wheatley wrote: This time with patch... On Mon, Feb 16, 2015 at 4:58 PM, Kevin Wheatley kevin.j.wheat...@gmail.com wrote: Whilst compiling with -DDEBUG I get the following... libavformat/rtpdec_h264.c: In function 'h264_handle_packet_stap_a': libavformat/rtpdec_h264.c:208: error: 'data' undeclared (first use in this function) libavformat/rtpdec_h264.c:208: error: (Each undeclared identifier is reported only once libavformat/rtpdec_h264.c:208: error: for each function it appears in.) libavformat/rtpdec_h264.c: In function 'h264_handle_packet_fu_a': libavformat/rtpdec_h264.c:259: error: 'data' undeclared (first use in this function) Looks like passing in the needed context to from the calling functions would work, Kevin rtpdec_h264.c |8 1 file changed, 4 insertions(+), 4 deletions(-) 408acfcf641594fb964ee06cdd8b54853f52d29e rtpdec_h264_compile_failt.patch diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 89053ef..24b701c 100644 applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Concerning the gods, I have no means of knowing whether they exist or not or of what sort they may be, because of the obscurity of the subject, and the brevity of human life -- Protagoras signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] compile failure with -DDEBUG of HEAD
This time with patch... On Mon, Feb 16, 2015 at 4:58 PM, Kevin Wheatley kevin.j.wheat...@gmail.com wrote: Whilst compiling with -DDEBUG I get the following... libavformat/rtpdec_h264.c: In function 'h264_handle_packet_stap_a': libavformat/rtpdec_h264.c:208: error: 'data' undeclared (first use in this function) libavformat/rtpdec_h264.c:208: error: (Each undeclared identifier is reported only once libavformat/rtpdec_h264.c:208: error: for each function it appears in.) libavformat/rtpdec_h264.c: In function 'h264_handle_packet_fu_a': libavformat/rtpdec_h264.c:259: error: 'data' undeclared (first use in this function) Looks like passing in the needed context to from the calling functions would work, Kevin diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 89053ef..24b701c 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -177,7 +177,7 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s, return 0; } -static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt, +static int h264_handle_packet_stap_a(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt, const uint8_t *buf, int len) { int pass = 0; @@ -234,7 +234,7 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt, return 0; } -static int h264_handle_packet_fu_a(AVFormatContext *ctx, AVPacket *pkt, +static int h264_handle_packet_fu_a(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt, const uint8_t *buf, int len) { uint8_t fu_indicator, fu_header, start_bit, nal_type, nal; @@ -308,7 +308,7 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, buf++; len--; // first we are going to figure out the total size -result = h264_handle_packet_stap_a(ctx, pkt, buf, len); +result = h264_handle_packet_stap_a(ctx, data, pkt, buf, len); break; case 25: // STAP-B @@ -322,7 +322,7 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, break; case 28: // FU-A (fragmented nal) -result = h264_handle_packet_fu_a(ctx, pkt, buf, len); +result = h264_handle_packet_fu_a(ctx, data, pkt, buf, len); break; case 30: // undefined ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel