Browse Source

* using some small char buffer - needed for sprintf

Originally committed as revision 416 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Zdenek Kabelac 23 years ago
parent
commit
623563c04a
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavcodec/utils.c

+ 4
- 4
libavcodec/utils.c View File

@@ -219,7 +219,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
const char *codec_name; const char *codec_name;
AVCodec *p; AVCodec *p;
char buf1[32]; char buf1[32];
char *channels_str=NULL;
char channels_str[100];
int bitrate; int bitrate;


if (encode) if (encode)
@@ -272,13 +272,13 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
codec_name); codec_name);
switch (enc->channels) { switch (enc->channels) {
case 1: case 1:
channels_str = "mono";
strcpy(channels_str, "mono");
break; break;
case 2: case 2:
channels_str = "stereo";
strcpy(channels_str, "stereo");
break; break;
case 6: case 6:
channels_str = "5:1";
strcpy(channels_str, "5:1");
break; break;
default: default:
sprintf(channels_str, "%d channels", enc->channels); sprintf(channels_str, "%d channels", enc->channels);


Loading…
Cancel
Save