Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Side by Side Diff: patched-ffmpeg-mt/libavformat/rtmppkt.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * RTMP input format 2 * RTMP input format
3 * Copyright (c) 2009 Kostya Shishkov 3 * Copyright (c) 2009 Kostya Shishkov
4 * 4 *
5 * This file is part of FFmpeg. 5 * This file is part of FFmpeg.
6 * 6 *
7 * FFmpeg is free software; you can redistribute it and/or 7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version. 10 * version 2.1 of the License, or (at your option) any later version.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 av_log(ctx, AV_LOG_DEBUG, " number %g\n", av_int2dbl(AV_RB64(data))); 369 av_log(ctx, AV_LOG_DEBUG, " number %g\n", av_int2dbl(AV_RB64(data)));
370 return; 370 return;
371 case AMF_DATA_TYPE_BOOL: 371 case AMF_DATA_TYPE_BOOL:
372 av_log(ctx, AV_LOG_DEBUG, " bool %d\n", *data); 372 av_log(ctx, AV_LOG_DEBUG, " bool %d\n", *data);
373 return; 373 return;
374 case AMF_DATA_TYPE_STRING: 374 case AMF_DATA_TYPE_STRING:
375 case AMF_DATA_TYPE_LONG_STRING: 375 case AMF_DATA_TYPE_LONG_STRING:
376 if (data[-1] == AMF_DATA_TYPE_STRING) { 376 if (data[-1] == AMF_DATA_TYPE_STRING) {
377 size = bytestream_get_be16(&data); 377 size = bytestream_get_be16(&data);
378 } else { 378 } else {
379 size = bytestream_get_be32(data); 379 size = bytestream_get_be32(&data);
380 } 380 }
381 size = FFMIN(size, 1023); 381 size = FFMIN(size, 1023);
382 memcpy(buf, data, size); 382 memcpy(buf, data, size);
383 buf[size] = 0; 383 buf[size] = 0;
384 av_log(ctx, AV_LOG_DEBUG, " string '%s'\n", buf); 384 av_log(ctx, AV_LOG_DEBUG, " string '%s'\n", buf);
385 return; 385 return;
386 case AMF_DATA_TYPE_NULL: 386 case AMF_DATA_TYPE_NULL:
387 av_log(ctx, AV_LOG_DEBUG, " NULL\n"); 387 av_log(ctx, AV_LOG_DEBUG, " NULL\n");
388 return; 388 return;
389 case AMF_DATA_TYPE_ARRAY: 389 case AMF_DATA_TYPE_ARRAY:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 av_log(ctx, AV_LOG_DEBUG, "Server BW = %d\n", AV_RB32(p->data)); 437 av_log(ctx, AV_LOG_DEBUG, "Server BW = %d\n", AV_RB32(p->data));
438 } else if (p->type == RTMP_PT_CLIENT_BW){ 438 } else if (p->type == RTMP_PT_CLIENT_BW){
439 av_log(ctx, AV_LOG_DEBUG, "Client BW = %d\n", AV_RB32(p->data)); 439 av_log(ctx, AV_LOG_DEBUG, "Client BW = %d\n", AV_RB32(p->data));
440 } else if (p->type != RTMP_PT_AUDIO && p->type != RTMP_PT_VIDEO && p->type ! = RTMP_PT_METADATA) { 440 } else if (p->type != RTMP_PT_AUDIO && p->type != RTMP_PT_VIDEO && p->type ! = RTMP_PT_METADATA) {
441 int i; 441 int i;
442 for (i = 0; i < p->data_size; i++) 442 for (i = 0; i < p->data_size; i++)
443 av_log(ctx, AV_LOG_DEBUG, " %02X", p->data[i]); 443 av_log(ctx, AV_LOG_DEBUG, " %02X", p->data[i]);
444 av_log(ctx, AV_LOG_DEBUG, "\n"); 444 av_log(ctx, AV_LOG_DEBUG, "\n");
445 } 445 }
446 } 446 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698