Browse Source

move put_string() to common.{c,h}

Originally committed as revision 439 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 23 years ago
parent
commit
9717dad883
3 changed files with 10 additions and 9 deletions
  1. +9
    -0
      libavcodec/common.c
  2. +1
    -0
      libavcodec/common.h
  3. +0
    -9
      libavcodec/h263.c

+ 9
- 0
libavcodec/common.c View File

@@ -108,6 +108,15 @@ void jflush_put_bits(PutBitContext *s)
}
#endif

void put_string(PutBitContext * pbc, char *s)
{
while(*s){
put_bits(pbc, 8, *s);
s++;
}
put_bits(pbc, 8, 0);
}

/* bit input functions */

void init_get_bits(GetBitContext *s,


+ 1
- 0
libavcodec/common.h View File

@@ -186,6 +186,7 @@ void init_put_bits(PutBitContext *s,
INT64 get_bit_count(PutBitContext *s); /* XXX: change function name */
void align_put_bits(PutBitContext *s);
void flush_put_bits(PutBitContext *s);
void put_string(PutBitContext * pbc, char *s);

/* jpeg specific put_bits */
void jflush_put_bits(PutBitContext *s);


+ 0
- 9
libavcodec/h263.c View File

@@ -1102,15 +1102,6 @@ static void mpeg4_stuffing(PutBitContext * pbc)
put_bits(pbc, length, (1<<length)-1);
}

static void put_string(PutBitContext * pbc, char *s)
{
while(*s){
put_bits(pbc, 8, *s);
s++;
}
put_bits(pbc, 8, 0);
}

/* must be called before writing the header */
void ff_set_mpeg4_time(MpegEncContext * s, int picture_number){
int time_div, time_mod;


Loading…
Cancel
Save