simplify
Originally committed as revision 16964 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f8ca63e8e4
commit
be62f5569e
@ -81,13 +81,7 @@ static int get_tag(ByteIOContext *pb, uint32_t * tag)
|
|||||||
/* Metadata string read */
|
/* Metadata string read */
|
||||||
static void get_meta(ByteIOContext *pb, char * str, int strsize, int size)
|
static void get_meta(ByteIOContext *pb, char * str, int strsize, int size)
|
||||||
{
|
{
|
||||||
int res;
|
int res = get_buffer(pb, (uint8_t*)str, FFMIN(strsize-1, size));
|
||||||
|
|
||||||
if (size > strsize-1)
|
|
||||||
res = get_buffer(pb, (uint8_t*)str, strsize-1);
|
|
||||||
else
|
|
||||||
res = get_buffer(pb, (uint8_t*)str, size);
|
|
||||||
|
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user