Commit 6128bbfd authored by aurel's avatar aurel

simplify

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16964 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dd6d9e22
......@@ -81,13 +81,7 @@ static int get_tag(ByteIOContext *pb, uint32_t * tag)
/* Metadata string read */
static void get_meta(ByteIOContext *pb, char * str, int strsize, int size)
{
int res;
if (size > strsize-1)
res = get_buffer(pb, (uint8_t*)str, strsize-1);
else
res = get_buffer(pb, (uint8_t*)str, size);
int res = get_buffer(pb, (uint8_t*)str, FFMIN(strsize-1, size));
if (res < 0)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment