Lavc: fixed another crash

This commit is contained in:
Martin Pulec
2013-03-05 14:14:07 +01:00
parent 8ddafc64f4
commit 28cb80db2d

View File

@@ -210,7 +210,6 @@ static bool configure_with(struct libav_video_compress *s, struct video_frame *f
double avg_bpp; // average bite per pixel
// implement multiple tiles support if needed
assert(frame->tile_count == 1);
s->saved_desc = video_desc_from_frame(frame);
struct video_desc compressed_desc;
enum {
@@ -433,6 +432,8 @@ static bool configure_with(struct libav_video_compress *s, struct video_frame *f
return false;
}
s->saved_desc = video_desc_from_frame(frame);
return true;
}