Alex Converse wrote:
---
avconv.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/avconv.c b/avconv.c
index 6514269..93484b8 100644
--- a/avconv.c
+++ b/avconv.c
@@ -18,6 +18,7 @@
* License along with Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
*/
+#define DEBUG
really? :)
#include "config.h"
#include<ctype.h>
@@ -1156,15 +1157,14 @@ static void do_video_out(AVFormatContext *s,
/* raw pictures are written as AVPicture structure to
avoid any copies. We support temporarily the older
method. */
- AVFrame* old_frame = enc->coded_frame;
- enc->coded_frame = dec->coded_frame; //FIXME/XXX remove this hack
+ enc->coded_frame->interlaced_frame = in_picture->interlaced_frame;
+ enc->coded_frame->top_field_first = in_picture->top_field_first;
pkt.data= (uint8_t *)final_picture;
pkt.size= sizeof(AVPicture);
pkt.pts= av_rescale_q(ost->sync_opts, enc->time_base,
ost->st->time_base);
pkt.flags |= AV_PKT_FLAG_KEY;
write_frame(s,&pkt, ost->st->codec, ost->bitstream_filters);
- enc->coded_frame = old_frame;
} else {
AVFrame big_picture;
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel